1.Record the log in fail operation ,modifiy the script and execute (Check whether the error pop up is coming or not)
SystemUtil.Run “C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe”,””,”C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\”,”open”
Dialog(“Login”).WinEdit(“Agent Name:”).Set DataTable(“FailCases”, dtGlobalSheet)
Dialog(“Login”).WinEdit(“Password:”).SetSecure “4c91bc221cac82356789274ebd5c0e68ab84531d”
Dialog(“Login”).WinButton(“OK”).Click
obj1=Dialog(“Login”).Dialog(“Flight Reservations”).Exist
If obj1 Then
reporter.ReportEvent micPass,”should pass”,”done”
else
reporter.ReportEvent micFail,”fail”,”not expected”
End If
Dialog(“Login”).Dialog(“Flight Reservations”).WinButton(“OK”).Click
Dialog(“Login”).WinButton(“Cancel”).Click
2.Record for incorrect password.Add the objects of incorrect password window to Object Repository.Modify the script . . . → Read More: FlightReservation Examples2 using qtp
Recent Comments