how can you select random value for every iteration from a
weblist
Answer Posted / amarendra kothuru
First get the Items count from the List and Use the
RandomNumber() function to get the random Index value. The
below code will work
ItemsCount = Browser("Browsername").Page("PageTile").WebList
("WebListName").GetROProperty("items count")
Browser("Browsername").Page("PageTile").WebList
("WebListName").Select ("#" & RandomNumber(0,ItemsCount))
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?
What are the features of quick test pro(qtp)?
Explain the concept of object repository & how qtp recognizes objects?
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
what is the difference between development and testing
What are the data types in qtp?
Explain the differences between table and db checkpoints?
What are the differences between table and db checkpoints?
What are the advantages of a Hybrid framework?
when to start the automation?
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
how can i call function (which has link with excell sheet at a remote location) within another function
Explain about Test Fusion Report of QTP?
Can U Explain about QTP tool from older version to latest version also its differences?