1

我有一个用于 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();
}

}

4

0 回答 0