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

how we can do web browser using parametarisation in QTP ?

2 Answers   Efextra, Kanbay,


How can get count of list box?

0 Answers  


why we are using environment variables instead of global variables?

1 Answers   TCS,


How will you handle the situation when object is not captured during record?

2 Answers  


In qtp, explain what is qrs file?

0 Answers  


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.

0 Answers  


what is a file system object in QTP

7 Answers  


How to use Environment parameterization in QTP? Explain with an example.

2 Answers  


hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

0 Answers   TCS,


hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com

0 Answers  


How to create an Action Template?

1 Answers  


What is the difference between functions and actions in QTP?

7 Answers   Verizon,


Categories