10-22-2009, 11:56 AM
if you use 'RandomNumber' with a name then it generating new number will depend on the action iteration or test iteration, its is generated once per action/test or once for entire test depend on the configuration setting you. (see more info in QTP help)
I will suggest you to not to use the name in the parameter while using RandomNumber for this case
use start number and end number for the args of function
I will suggest you to not to use the name in the parameter while using RandomNumber for this case
use start number and end number for the args of function
Code:
for i=1 to 3
Runaction "Action1", oneIteration, RandomNumber(0,100)
next