两个脚本嵌入到一个脚本,运行结果始终是failed
action1:systemutil.Run "c:\program files\internet explorer\iexplore.exe","www.baidu.com"
Browser("百度一下,你就知道").Page("百度一下,你就知道").webedit("搜索输入框").Set "QTP自动化测试技术领航"
Run_time=Browser("百度一下,你就知道").Page("百度一下,你就知道").GetROProperty("value")
DataTable.Value("Runtime_Data","Global")=Run_time
Browser("百度一下,你就知道").Page("百度一下,你就知道").WebButton("百度一下").Click
RunAction "Action2 ", oneIteration
action2:
Run_data=DataTable.Value("Runtime_Data","Global")
Checkvalue=Browser("百度一下,你就知道").Page("百度搜索结果页面").WebEdit("百度搜索结果").GetROProperty("value")
If Checkvalue=Run_data Then
msgbox "passed"
else
msgbox "failed"
End if
脚本action1调用脚本action2,运行后,结果始终是failed,不知道为啥不能得到Run_data和Checkvalue相同的结果? 请高手指点,谢谢。 action1中获取值那里少了 WebEdit OK, you are right. Oh, my god! I forget to add the object unexpectedly. Thank you very much. Best regards. OK, you are right. Oh, my god! I forget to add the object unexpectedly. Thank you very much. Best re ...
shinan 发表于 2013-5-19 15:21 http://bbs.51testing.com/images/common/back.gif
The show's over.OK. 回复 4# zz45509
楼上回的看懂了 你回的 咋没看懂
页:
[1]