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.



New to QTP: In a qtp flight booking application, I tried to parameterize the to and from drop down..

Answer / 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

More QTP Interview Questions

What is the difference between functions and actions in QTP?

7 Answers   Verizon,


how much space occupies in object respository by default?

5 Answers   VSoft,


How to make arguments optional in a function?

0 Answers   Crea,


write script for "dropdown button having how many words? for ex.SELECT CITY is dropdown name.. find out how many cities in that?

1 Answers  


any one could you explain the following code with example: intFieldItemsCnt =CInt(GetProperty(Browser ("Browsername").Page("Pagename").Weblist ("weblistname"),"items count")) msgbox intFieldItemsCnt

1 Answers  






Which scripting language used by QTP?

1 Answers  


What exactly is the difference among all the three recording modes.

2 Answers   TCS,


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,


what is delay in QTP?

2 Answers  


how to pass parameters from one action to another using output parameters I am not calling action 2 from action 1, they are being called individually I need syntax please .. Requirement: Action 1 customer = Browser(" ").Page(" ").Link(" ").GetROProperty("value") I want to use the value stored in customer in Action 2 I do not want to use any of these actions as re-usable actions

2 Answers  


Create an Excel file and pass the values from Flat File? (for ex:data1.txt,data2.txt )

2 Answers   FIS,


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

6 Answers  


Categories