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 / 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 |
how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up
What is QTP scenario.
How u call functions in QTP Function to calculate the length of characters in a wor
What are the option you can use to synchronize your test?
How can we do Data driven testing Using For loop in QTP?
How to retrieve the data from database?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
what is Function Definition Generator? can any one explain me in details?
How to switch between browser tabs? )moving from one tab to another tab)
What contains Data Driven Framework document in qtp?
I have written some scripts in QTP by using older version, but I want to run them in latest version. Is there any process to do that.If so can anyone explain me?
what is difference between wait and synchronization point.