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

I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)

7 Answers   Xansa,


What is the diff between image and bitmap check point?

0 Answers  


In QTP, What is Global action and Local action?

0 Answers   Virtusa,


is qtp 9.2 supported for firefox browser3.0?bcoz when i tried to create scripts with the application run on firefox browser 3.0 then qtp 9.2 didn't ct=reate the scripts?

2 Answers  


What is Environment Variable and when we apply this in QTP?

4 Answers  






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

6 Answers   Microsoft, TCS,


What is Version control?

3 Answers  


1. Can anyone help me with recovery scenarios, each type with examples and also what is on error resume next?

1 Answers  


What is the difference between systemUtil and invoke method..?

5 Answers  


what is stlc and its contents?

1 Answers  


Can any one send me the QTP Basic Coding Samples?

0 Answers  


wht type of User defined functions or Java Releated functions Do we write in VB scripting

0 Answers  


Categories