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
Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.
Sql questions to find second max salary and how to use joins
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
Is it possible to merge two object repository files in qtp?
How many types of recording facility are available in quicktest professional (qtp)?
How many types of parameters are available in quicktest professional (qtp)?
Mention the test steps of qtp.
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?
What are the flaws in water fall model and how to overcome it?
Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version
How many number of actions possible in qtp?
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
Write a script to verify font style and color of a windows object using descriptive programming
Why qtp the best testing tool?
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??