|
我用QTP录制自带的程序,若是让qtp启动程序,生成的代码是正确的
Dialog("Login_2").WinEdit("Agent Name:").Set "mercury"
Dialog("Login_2").WinButton("OK").Click
但若是我自己启动程序生成的代码
SystemUtil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\HP\QuickTest Professional\samples\flight\app\","open"
Dialog("Login_2").WinEdit("Agent Name:").Type "m"
Dialog("Login_2").WinEdit("Agent Name:").Type "e"
Dialog("Login_2").WinEdit("Agent Name:").Set "me"
Dialog("Login_2").WinEdit("Agent Name:").Type "r"
Dialog("Login_2").WinEdit("Agent Name:").Set "mer"
Dialog("Login_2").WinEdit("Agent Name:").Type "c"
Dialog("Login_2").WinEdit("Agent Name:").Set "merc"
Dialog("Login_2").WinEdit("Agent Name:").Type "u"
Dialog("Login_2").WinEdit("Agent Name:").Set "mercu"
Dialog("Login_2").WinEdit("Agent Name:").Type "r"
Dialog("Login_2").WinEdit("Agent Name:").Type "y"
Dialog("Login_2").WinEdit("Agent Name:").Set "mercury"
按理应该之后最后那一句啊,我使用的是正常录制模式,这是什么问题啊,急求助 |
|