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...

New to QTP: In a qtp flight booking application, I tried to
parameterize the to and from drop down lists using data
table, depending on ur drop down selection it will pop up a
list of flights. Here I am not finding a way to select
flight randomly from given list... Thanks in advance guys.

Answer Posted / a.thirumalareddy@gmail.com

Browser("Find a Flight: Mercury").Page("Find a Flight: Mercury").WebList("fromPort").Select randomnumber.Value(0,9)

Browser("Find a Flight: Mercury").Page("Find a Flight: Mercury").WebList("toPort").Select Randomnumber.Value(0,9)

just use these two steps

randomnumber is used for selecting the values randomly within the given range (here 0,9 because total items are 10)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of qtp?

983


What is quicktest professional window?

955


Explain advantages and disadvantages of ddf?

1030


your coming from electrical backgroung..but y ur coming to software side?

1760


what is the latest version of QTP? Main difference between 9.2 and 10 version

2089


Why do we use breakpoints in QTP?

1023


If I change the property value at runtime is it effect is object repository?

1058


Explain calling sub procedure.

1038


Can you brief the hurdles you faced during Automation testing?

1009


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1907


What is the standard timing delay for web based application in qtp?

1052


Why we load add-ins in qtp?

1076


How do we analyze the checkpoint results?

1005


Hi All, How to Compare two strings character by character in QTP

1470


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

1009