how can you select random value for every iteration from a
weblist
Answer Posted / vijay
Dim ListCount
ListCount =
Browser("Name").Page("Name").WebList("Name").GetROProperty("items
count")'Count the items in the list
ListCount = ListCount-1 'index value starts from 0
Randomize 'initiate random number
RandomValueList = Int(ListCount * Rnd)' convert
listcount as random number in the RandomValueList variable
Browser("Name").Page("Name").WebList("Name").Select
("#" & RandomValueList) 'Call the RandomValueList variable
appending to index of weblist
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Have you done batch testing in qtp? If yes how you are doing?
Hai anyone please "Explain about Framework in QTP?"
what is error and fault in terms of software quality?
UFT 12.02 which ALM version will support
How do we handle run-time errors?
How QA specialist can identify when programmatic descriptions are useful?
banking project description for software tester
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
What is a checkpoint? How many check points are there in qtp?
Explain the check points in quicktest professional?
Can any suggest me what is exposure testing?
What is the difference between the design-time and run-time data tables?
i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)
What are the benefits of qtp?
Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.