Hi All
I'm new in QTP. I'm trying to make test cases for login on
Flight.exe .
I have parametrise the agentname and password field.
So wen wromg agent name or password is entered it show a
dialog box with proper message(Like: "Wrong Password"
or :Please enter Password" etc) and OK button.
I have created If else block. Now my problem is i want to
make checkpoint on error message Dialog box. But each time
i create a checkpoint it shows same text message.
So how i can check that message is there or not.
Answers were Sorted based on User's Feedback
Answer / sailaja
hi
i have written script like this . its working.i captured
the message.
systemutil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe"
Dialog("Login").WinEdit("Agent Name:").Set "sailaja"
Dialog("Login").WinEdit
("Password:").SetSecure "480d599e2cdad2bd049683c4bb494beaea4
dabce"
Dialog("Login").WinButton("OK").Click
Dialog("Login").Dialog("Flight Reservations").Click 107,
28, micRightBtn
Dialog("Login").Dialog("Flight Reservations").Static
("Incorrect password. Please try again").Check CheckPoint
("Incorrect password. Please try again")
Please let me know if you ace any prob.
THANK YOU
SAILAJA.
| Is This Answer Correct ? | 1 Yes | 0 No |
Where you are storing your script?
With help of object repository,we can able to write the descriptive program manually?
HOW TO CONVERT MANUAL TEST CASES IN TO AUTOMATION TEST SCRIPTS EXPLAIN THE PROCESS?
What are the different types of action?
in qtp how i can retrive from a browser how many links are there.means total no of links used in a browser
Can i get a simple example exercise for update run mode for sample flight application......... In qtp when i try to run the test in update mode.. Auotmation> update option is disabled............ Pls let me know ................. Thanks in advance.....
We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?
How to get popup error message.
what is compiled module?
Explain the types of properties that quick test learns while recording?
I have 2 Environment variable which holds int. I called into my test and addedup. but output is concatenating the values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20, c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to overcome this pblm?
What is the use of ordinal identifier in qtp?