give me descriptive programing code sample flight
application in qtp?

Answer Posted / srikanth

Dialog("text:=Login").WinEdit("name:=Agent
name").set "srikanth"
Dialog("text:=Login").WinEdit
("name:=Password").set "mercury"
Dialog("text:=Login").WinButton("name:=OK").click
If Window("text:=Flight Reservation") Exists
Then
Window("text:=Flight Reservation").close
Else
Dialog("text:=Login").Dialog("text:=Flight
Reservation").Winbutton("name:=OK").click
Dialog("text:=Login").Winbutton("name:=CANCEL").click

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.

2467


Why is Client side image is preferred over server side image?

1444


What is the short cut keys for the following?

647


• What type of testing questions will be asked for 2+ yrs exp people in interview?

1257


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2397






I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

1522


What is the parameterization?

579


With what extension you can save the list of tests in a file to run in test batch runner?

566


after click on compose mail how can we attached a file in qtp with vbscript code

1612


Is it possible to split an action? How?

662


I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

1718


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1520


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

582


Describe synchronization point.

579


What is the syntax to call one action in another?

552