|
我记录查询输入的是software testing
package Google;
import resources.Google.SearchSoftwareTestingHelper;
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.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;
/**
* Description : Functional Test Script
* @author panda
*/
public class SearchSoftwareTesting extends SearchSoftwareTestingHelper
{
/**
* Script Name : <b>SearchSoftwareTesting</b>
* Generated : <b>2007-11-6 上午09:42:40</b>
* Description : Functional Test Script
* Original Host : WinNT Version 5.1 Build 2600 (S)
*
* @since 2007/11/06
* @author panda
*/
public void testMain(Object[] args)
{
// HTML Browser
// Document: Google: http://www.google.cn/
text_q().click(atPoint(44,12));
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("s");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("o");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("f");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("t");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("w");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("a");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("r");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("e");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("t");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("e");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("s");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("t");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("i");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("n");
browser_htmlBrowser(document_google(),MAY_EXIT).inputChars("g");
browser_htmlBrowser(document_google(),DEFAULT_FLAGS).inputKeys("software {BKSP} testing{ENTER}");
}
}
结果执行时显示输入框中是:softwaretestingsoftware testing,显示结果也不一样,是为何?谁能给出答案,谢谢! |
|