Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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?



write script for , launching fr window,login and create 5 elements array and store 5 order numbers i..

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

Post New Answer

More QTP Interview Questions

What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

0 Answers  


Why a framework is needed?? Plaese post your answers ASAP

3 Answers   ACC, FD, Mphasis,


In a page i have N number of links at a time i would like to open those links by using QTP?how to do that?

2 Answers   Wipro,


keyword driven framework having how many folders? explain folders in detail?

1 Answers  


what is the difference between call to copy action and call to an existing action

5 Answers  


Can we Run the Tests developed in QTP 8.2 in advanced versions like 9.0, 9.1, 9.2...etc.,

3 Answers   ADP,


Write the code for select the 5 values from drop down list. drop down list having the 10 values.

6 Answers  


In how many ways we can add check points to an application using QTP.

2 Answers   Infogain,


Hi Frriends... I have one Query please give the apropriate ans. when we r working with web based application , the user loggedin page name is changed respect to the username ( Take a exp. Yahoomail.com) .When we use Datadriven test to this scenario ,each time the loggedin page name is changed ...then the script is fail.. at that time wat can do... please give the apropriate ans. Thanx in advance..

3 Answers  


i have .xls,.txt,.doc files are there (together). i want find only .xls file among them? how can we write function?

3 Answers   CTS,


How function returns a value?

1 Answers  


Where we can use the analog mode and where we can use the low – level mode?

0 Answers  


Categories