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

How you can find length of array in qtp?

1034


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

1024


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

1506


What are the advantages of qtp?

1016


Describe how Smart Identification is used

2242


Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?

1962


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

2049


we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?

2079


To which environments does quicktest professional (qtp) supports?

1027


If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

1908


How will you test a stapler?

1118


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.

2026


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

1920


What is different command used in command Prompt while using QTP?

2245


What is checkpoints for qtp?

979