代碼:
import resources.Script4Helper;
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.WPF.*;
import com.rational.test.ft.object.interfaces.dojo.*;
import com.rational.test.ft.object.interfaces.siebel.*;
import com.rational.test.ft.object.interfaces.flex.*;
import com.rational.test.ft.object.interfaces.generichtmlsubdomain.*;
import com.rational.test.ft.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;
import com.ibm.rational.test.ft.object.interfaces.sapwebportal.*;
public class Script4 extends Script4Helper
{
public void testMain(Object[] args)
{
setSimplifiedScriptLine(1); //firefox.exe: Mozilla Firefox Start Page - Mozilla Firefox
timerStart("firefoxexeMozillaFirefoxStartPageMozilla_1");
setSimplifiedScriptLine(2); //Click Mozilla Firefox Start Page - Mozilla Firefox Index 17
mozillaFirefoxStartPageMozilla().click(atIndex(17),atPoint(257,55));
setSimplifiedScriptLine(3); //Type Value google.com{ENTER}
mozillaFirefoxStartPageMozilla2().inputKeys("google.com{ENTER}");
timerStop("firefoxexeMozillaFirefoxStartPageMozilla_1");
}
}
如何運行此腳本?當我運行這個,這不會打開瀏覽器。它說「找不到mozilla」..開放mozila通過RFT
有人可以幫忙嗎?