![]() |
how can we randomly select the values from a drop down box. - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: how can we randomly select the values from a drop down box. (/Thread-how-can-we-randomly-select-the-values-from-a-drop-down-box) |
how can we randomly select the values from a drop down box. - adityaaggarwal - 04-16-2009 Let's say We are testing a form and in the form a drop down field is there along with other fields. In our test how can we randomly select the values from the drop down box. Thanks Aditya RE: how can we randomly select the values from a drop down box. - sreekanth chilam - 04-16-2009 Hi , Follow the below procedure : Step1 : Find the no. of items(Items Count) of the dropdown. Step2 : Say No. of items in dropdown are 10 ( 0 to 9) Step3 : Use Random Number method as --> Select RandomNumber(0,9) Now check it out & see ....it works fine. RE: how can we randomly select the values from a drop down box. - adityaaggarwal - 04-17-2009 Thanks Its Working ![]() Aditya RE: how can we randomly select the values from a drop down box. - adityaaggarwal - 04-17-2009 What should we do in the case if we want to check or uncheck the checkbox randomly as Select RandomNumber() does not work with it. |