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



Hi All I'm new in QTP. I'm trying to make test cases for login on Flight.exe . I ha..

Answer / murali krishna

using Recovery scenario manager

Is This Answer Correct ?    3 Yes 0 No

Hi All I'm new in QTP. I'm trying to make test cases for login on Flight.exe . I ha..

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

Post New Answer

More QTP Interview Questions

does test plan is in test strategy or test strategy is in test plan.

6 Answers   Microsoft, TCS,


How to write business scripts using object repository with different scenarios

0 Answers  


How do Parameterization and Data-Driving relate to each other in QTP?

0 Answers  


Please clarify Automation and QTP both(names) are same or diff?

1 Answers  


What is business process testing(bpt) in qtp?

0 Answers  






explain all the check point in QTP?

1 Answers   BirlaSoft,


What is the significance of “action 0” in qtp?

0 Answers  


we have 10 automation scripts. how to call them from one main script.

2 Answers  


i am trying to capture the URL from the open browser and store it. pls give me solution how we can do this in QTP. thanks

2 Answers  


how to get the data from a winedit box in vb scripting and store it in a variable if data contains "_"(i.e data is TEST_1)

3 Answers  


How should I get results when I run scripts in a Batch mode

1 Answers   TCS,


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

0 Answers   TCS,


Categories