Flight reservation using input and output parameter script.



Flight reservation using input and output parameter script...

Answer / bindu

Dialog("Login").WinEdit("Agent Name:").Set
DataTable("username", dtLocalSheet)
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure
DataTable("password", dtLocalSheet)
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").ActiveX("MaskEdBox").Type "091012"
Window("Flight Reservation").WinComboBox("Fly From:").Select
"Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select
"Los Angeles"
Window("Flight Reservation").WinButton("FLIGHT").Click
r=Window("Flight Reservation").Dialog("Flights
Table").WinList("From").getroproperty("selection")
msgbox r
DataTable("Result", dtLocalSheet)=r
Window("Flight Reservation").Dialog("Flights
Table").WinList("From").Select "20334 FRA 12:12 AM LAX
07:23 PM AA $112.20"
Window("Flight Reservation").Dialog("Flights
Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "bindu"
Window("Flight Reservation").WinButton("Insert Order").Click

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More QTP Interview Questions

what is mean by output parameters? I need full description with example. tell me any one please

1 Answers  


synchronization, wait,wait Property?

1 Answers  


Explain the concept of object repository and how qtp recognises objects?

0 Answers  


Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..

2 Answers  


Is it possible to use two instances of UFT on the same machine? If not why?

0 Answers  






Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?

4 Answers  


Plz Explain AUTOMATION REFERENCE MODEL?

0 Answers  


how to capture the run time values of web table.

3 Answers   CTS,


what r the send key commands in QTP why they r used

1 Answers  


What is quick test pro? What is a quick test professional?

0 Answers  


i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer

0 Answers   TCS,


What are the different kinds of test steps?

0 Answers  


Categories