代码:
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”..
有人可以帮忙吗?