give me descriptive programing code sample flight
application in qtp?

Answer Posted / chandu.myne

Systemutilrun " Path of the Application "
Dialog("text:=Login").WinEdit("name:=Agent name").set "Chandu"
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").Winbutton("name:=CANCEL").click

Regards,
Chandu
Correct me if i was wrong

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to find that tools work well with ur existing system?

1354


What is the difference between rational rose and QTP?

1782


how to write xml output check point bu useing descriptive programing .means without useing output check point

1654


how will you check how many members visited the website www.infosys.com?

1481


can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

5103






how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1827


please any one can explain the keyword driven framework. with gmail example.

1629


Explain in brief about the qtp automation object model (aom).

565


how to find that tools work well with your existing system?

1403


describe some problems that u had with automating testing tool?

1414


1 Folders in VSS 2 In navigation script there are 100 script i want to run first 50 and 37th script also not needed to run how to do this 3 What is navigation script,Driver script, business script what we are loaded in this script 4 use of resource tab 5 Difference between verification and validation give real scenario example 6 file scripting object when to use it 7 what are the problems you are faced while testing web application 8 difference between expert view and keyword view 9 difference between QTP 8.2 and QTP 9.2 navigation frame work please answer these questions from real time working people as early as possible

1608


Discuss quicktest professional (qtp) environment?

578


How many add-ins comes by default with qtp?

542


Shall we add Local Repository to shared object repository,if yes,how we add

5694


How to do call a output parameter from one action to another action??/

1872