Random Variable - 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: Random Variable (/Thread-Random-Variable) |
Random Variable - Kiran28 - 10-21-2008 Hi, I am using Random Number for parameterization and have specified range of values from 100,000 to 1,000,000. Every time I execute the script I am getting the Error Mesage as: Cannot identify the specified item of the PriceLow object. Confirm that the specified item is included in the object's item collection. Code: "Browser("xxx").Page("xxxx").WebList("PriceLow").Select RandomNumber("Low")". It works fine without Random Number parameterization. Please help me on this? Thanks, Kiran RE: Random Variable - kishoreinchennai - 10-21-2008 what is RandomNumber("Low") ie what is the return value and that value must be present in the list box if not you will get this error.all you want to do is make sure the variable RandomNumber (which is the function name) gets a value in the list box Regards RE: Random Variable - Kiran28 - 10-21-2008 Thanks for your reply kishore. In th list box the value is in form "$100,000" ,"$150,000"..... We need to insert $ sign in Random Number. I tried it and it does not take any other character other than numbers. I have given range from 100000 to 600000. I dont know much about scripting, can we do it in scripting? Thanks Kiran |