Flight reservation using input and output parameter script.
Answer Posted / 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 View All Answers
What is QTP scenario.
On what document base Descriptive programming is written if build is not yet ready ?
What is qtpro? What is a quick test professional?
How to find Operating system information using QTP script?
How can I use Call dlls in QTP ?
Explain actions in qtp ?
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
How can you identify the browser and its information using QTP script?
How can I change object description or check point values in qtp?
How many tabs are available to view your test in a test pane and what are they?
Explain about the test fusion report of quicktest professional?
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
Can we record using all the modes in a single script? Explanation with example is appreciated
What are the steps involved in recovery scenario wizard?