If Dialog("Login").Dialog("Flight Reservations").Exist Then
Dim err_message
err_message=Dialog("Login").Dialog("Flight Reservations").Static("Please enter agent name").GetROProperty("text")
Reporter.ReportEvent micFail,"登陆失败","错误信息是:"&err_message
Dialog("Login").Dialog("Flight Reservations").WinButton("确定").Click
Dialog("Login").WinButton("Cancel")
SystemUtil.Run PathFinder.Locate("C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"),"",PathFinder.Locate("C:\Program Files\HP\QuickTest Professional\samples\flight\app"),"open"
else
Reporter.ReportEvent micPass,"登陆成功","登陆成功"
End If
Loop