Method Common.GenerateRandomNumberAsString
Returns a non-negative random integer which is converted into a stringUsage
Function ZAP.Common.GenerateRandomNumberAsString (
Integer MinValue [Optional],
Integer MaxValue [Optional]
)
Parameters
MinValue (optional)
Type: Integer
Default value: 0
The inclusive lower bound of the random number returned
MaxValue (optional)
Type: Integer
Default value: 1000
The exclusive upper bound of the random number returned. MaxValue must be greater than or equal to MinValue.
Returns
Random number converted to string
Example
VBScript
msgbox Zap.Common.GenerateRandomNumberAsString(10, 100)
JavaScript
alert(Zap.Common.GenerateRandomNumberAsString(10, 100));
Comment
Generate random number from 10 to 100 as string and save it to local variable