Micro Focus QTP (UFT) Forums
Question Asked in CTS on QTP - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions)
+--- Thread: Question Asked in CTS on QTP (/Thread-Question-Asked-in-CTS-on-QTP)



Question Asked in CTS on QTP - asif.testing - 03-31-2008

Hi friends,
This is Asif, following question is asked on QTP at CTS,pls give the answer if any body knows it.
If am entering valid user name and valid pwd in the login screen of flight reservation,then Flight Reservation window is not opening,at this time how ur going to validate data(test data) using QTP?


RE: Question Asked in CTS on QTP - Dmatharu - 03-31-2008

You can check if the window "Flight Reservation" exists. If it does not then just exist the test.
Sample test code
Code:
If NOT Window ("Flight Reservation").Exist(5) then
message = "dialog 'Flight resrvation' is not displayed after 5 seconds"
exittest(micFail)
End If



RE: Question Asked in CTS on QTP - ShravanGaddam - 04-01-2008

I think the question is not properly phrased. Please re-phrase the question.
If this is what you are trying to say, then that makes no sense.
When you know that the data given is correct and still the application is not being displayed, then a defect should be logged saying that the authentication part is not working. If you want to validate the data, validate it before entering it in QTP and then run the script.