fbpx

Method Common.GenerateRandomNumberAsString

Returns a non-negative random integer which is converted into a string

Usage

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));

Documentation Categories

benefits UI testing and rpa

ZAPTEST

Manual testing tools, vs. automation, checklists and more

FARM

LOAD