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
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
What are the disadvantages of recording test cases in qtp?
What is meant by Output Value in UFT?
What is the pros and cons between QTP and Rational Robot
distinguish between old version and new version QTP features.
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
what is the difference between data driver & data driven and driver script?
Explain quicktest professional (qtp) testing process?
Which environments does qtp support?
1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me
what type of automation is follwed in the project?
What is action? How many types of actions are there in qtp?
What is the use of Debug Viewer?
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
What is difference in global and action sheet in qtp?