Saturday, 22 September 2012

Test case to check flight reservation window is closed by using file-> exit


SystemUtil.Run "C:\Program Files (x86)\HP\QuickTest Professional\samples\flight\app\flight4a"
Dialog("Login").WinEdit("Agent Name:").Set "sabeer"
Dialog("Login").WinEdit("Password:").SetSecure "510737345f6c4de59ea286706d40499b4428a037"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").WinButton("Button").Click
Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"
If  Window("Flight Reservation").WinMenu("Menu").Exist Then
Reporter.ReportEvent micFail,"window not closed","window not closed"
else
Reporter.ReportEvent micPass,"window closed","window closed"
End If

No comments:

Post a Comment