|
看一下能不能满足你的要求;
Dialog("Login").WinEdit("Agent Name:").Set DataTable("p_Text", dtGlobalSheet)
val=Dialog("Login").WinEdit("Agent Name:").GetROProperty("text")
If IsNull(val) Then
msgbox ("Agent Name:为空值")
else
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure "447671ca04dc530f27835e45620f59052f3159f6"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Activate
Window("Flight Reservation").Close
SystemUtil.Run "D:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe", "","",""
End If |
|