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
How can I use Call dlls in QTP ?
i need qtp tutorial. pls send it to sridhar.k151@g mail.com
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)
How to capture a window in QTP?
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
How can we conduct U-I Testing by using QTP??????
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement
The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?
how can i call function (which has link with excell sheet at a remote location) within another function
What are the types of data tables in qtp?
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
is it possible to add sheets to excel at runtime
How to modify object property in qtp ?
what is the diff b/w assistive and mandatary rules of object repository in QTP???