write script for , launching fr window,login and create 5 elements array and store 5 order numbers inthat array?
and open order by using order no.s in array and find out maximum tickets booked by which order?
Answer Posted / yamini
Tried to display the no. of tickets for each order but work out the solution to retrieve the maximum number of tkts booked. Thanks
Dim Arr, Tktcount
Arr=Array("1","2","3","4","5")
For Each Element in Arr
systemutil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
Dialog("Login").WinEdit("Agent Name:").Set "John"
Dialog("Login").WinEdit("Password:").Set "mercury"
Dialog("Login").WinButton("OK").Click
Wait(4)
Window("Flight Reservation").WinMenu("Menu").Select "File;Open Order..."
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order No.").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set Element
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click
Tktcount = Window("Flight Reservation").WinEdit("Tickets:").GetROProperty("text")
msgbox Tktcount
wait(2)
Window("Flight Reservation").Close
Next
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How to start recording using quicktest professional?
How to create a standard checkpoint ?
Can we record an application running on a remote machine using qtp?
How many types of Automation frameworks are there in UFT? Describe them.
What are the types of data tables in qtp?
What is the meaning Work bench?
When ‘option explicit’ keyword is used in qtp?
Why we load add-ins in qtp?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
What is the difference between the design-time and run-time data tables?
What is the use of text output value in quicktest professional (qtp)?
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
What is the syntax to call one action in another?
What are the steps involved in the recovery scenario wizard?
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?