|
请大家看下,为什么我的这段脚本只会单单跑一次。setting里面我是设了run on all rows。
SystemUtil.Run "E:\QTP\samples\flight\app\flight4a.exe","","E:\QTP\samples\flight\app\","open"
Dialog("Login").Activate
Dialog("Login").WinEdit("Agent Name:").Set DataTable("Username", dtLocalSheet)
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").Set DataTable("pwd", dtLocalSheet)
Dialog("Login").WinButton("OK").Click
If Dialog("Login").Dialog("Flight Reservations").Exist Then
Dialog("Login").WinButton("Cancel").Click
Dialog("Login").Close
elseif Window("Flight Reservation").Exist Then
Window("Flight Reservation").Close
End If |
|