To be Moon around my super star

2008-Nov-9 - Call RFT Script play back in normal Java Application

Directly look into the codes below:

 

//Location of datastore(project), installDir and playback script

String datastore = "C:\\F\\Automation Workshop\\RFTWorkSpace\\Project1";

String installDir = "C:\\Program Files\\IBM\\Rational\\SDP\\6.0\\FunctionalTester\\eclipse\\plugins\\com.rational.test.ft.wswplugin_6.1.0";

String playback = "aa.Good";

 

if((new File(installDir)).exists())

{

FtInstallOptions.setInstallDir(installDir);

}

 

ScriptPlayback spb = new ScriptPlayback(playback);

spb.addArg("Any Arguments");

rational_ft_impl impl = new rational_ft_impl();

impl.initTheSession(datastore);

spb.run();

ScriptPlayback.closeMessageLog();

ScriptPlayback.closePlaybackMonitor();

TestContext.delete();


2008-Nov-27 - Untitled Comment

Posted by HHUP
The class ScriptPlayBack and rational_ft_impl in the tip are defined in rational_ft_core.jar and datapool_api.jar published by Rational Functional Tester itself. Normally, you can search the two jar files in your RFT install directory.
Permanent Link

<- Last Page :: Next Page ->

About Me

belive, and check

Calendar

«  September 2014  »
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
2930 

Friends