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 |
write a script to verify the image path(src property) of the images which are in web pages.(do it by Descriptive method by creating a description object)
when i am running login page i got test run error? Please give me the script to handle run time exceptions. It's urgent for me.
What is the quicktest professional (qtp) testing process?
Can you write User defined function for WebEdit ? Note1: This function can be used for all web edits in all pages Note2: Don't use Child objects method
Give a comment on Regular Expressions using QTP?
hi friends can anyone tell me where can i find descriptive programming material please send me the link also,from which i can download the material
difference between recording methods and recording modes in QTP
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?
Whats the realtime QTP testing process
In QTP I have a parameter in a datatable that is a sentence. I need to take the last word from the sentence and enter it into a field in a web application. How can I setup a parameter to enter in just a portion of the parameter (last word of the sentence) instead of the entire paramater (whole sentence).
Give some brief idea about a) Active x check b) Alt property check c) Applet object check d) Frame object check e) Multimedia links check f) Server side image check g) Table object check