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.
Answer Posted / 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 |
Post New Answer View All Answers
Explain about the test fusion report of quicktest professional (qtp)?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..
how to idetfy which test cases are automated?who will deside that plz tell me
Discuss quicktest professional environment?
How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?
What is the file extension of the code file in qtp?
What environment does qtp run in?
If the objects hierarchy is changing from build to build, then how you will handle that condition?
What is the default object synchronization timeout in qtp?
What are the features and benefits of quick test pro (qtp 8.0)?
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
Explain how qtp identifies object?
How many ways we can parameterize data in quicktest professional (qtp)?
What are the challenges you faced during you entire life automation ?