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 |
What are some test assets and related extensions of qtp?
what is the defference between calling ation and called action?
can u write one user defined function for webedit class.
who QTP recognizes the object stored in object repository?
if Object repository contain x and y properties. we do not know whether they are mandatory or assistive properties. While executing the script qtp will use both the properties or only sufficient properties to identify the object. It means it use OR (or) AND
Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?
IF application is a Java-based application means 2 0r 3 tier application. How the script will be in QTP. pls kindly give some sample script.
does test plan is in test strategy or test strategy is in test plan.
how to associate object repository during runtime in qtp
How to handle exception when data table is not available in local host system or path is not correct(explain statement with example)
with out using import sheet came is it possible to get the excel sheet ?
any challange that faced in your project? (please give me some examples in your project?