如何在现有的java自动化框架上使用leanft

时间:2016-08-18 04:48:29

标签: java leanft

我有一个适用于Ibm的Rational RFT的现有java自动化框架。我们已决定转向HP UFT,因为需要为SAP应用程序实施BPT。我们不愿意将java框架重新编码为.vbs,并认为LeanFT可以使用大多数现有的Java代码。任何人都可以告诉我如何这样做(我附上一些代码)

package Runner.CMS;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import resources.Runner.CMS.AccessIntegration_TestRunnerHelper;
import utils.TestData;

import com.rational.test.ft.*;
import com.rational.test.ft.object.interfaces.*;
import com.rational.test.ft.object.interfaces.SAP.*;
import com.rational.test.ft.object.interfaces.siebel.*;
import com.rational.test.ft.object.interfaces.flex.*;
import com.rational.test.ft.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;


/**
  * Description   : Functional Test Script for IPR (Sydney Water)
  * @author Simmer
*/
public class AccessIntegration_TestRunner extends       AccessIntegration_TestRunnerHelper
{
    /**
     * Script Name   : <b>PaymentArrangement_TestRunner</b>
     * Generated     : <b>12/02/2014 4:47:58 PM</b>
     * Description   : Functional Test Script
     * Original Host : WinNT Version 6.1  Build 7601 (S)
     * 
     * @since  2014/02/12
     * @author Simmer
     * @throws Exception 
     */
     public void testMain(Object[] args) throws Exception 
     {

    setProjectName("Access Integration");
    setProjectDescription("CMS Access Integration Automated Test Suite");
    setExecutionDetails("CMS_");
    setDatapoolFolder("\\Datapools\\CMS\\AccessIntegration\\");
    setTestFlowFilename("AccessIntegration_TestFlow.xls");
    setExpectedResultsFilename("AccessIntegration_ExpectedResults.xls");
    setExecutionReportsFolder("\\ExecutionReports\\CMS\\AccessIntegration\\");
    setExecutionResultsFolder("\\ExecutionResults\\CMS\\AccessIntegration\\");
    setScreenCaptureLevel(3);
    setEnvironment("CTE1");


    isOfficialRun(false);
    run();
}

}

0 个答案:

没有答案