Applies to ReadyAPI 2.8, last modified on August 16, 2019

The Custom String generator is used for generating various strings for a data source using the predefined template and then use them in virtual responses.

To activate the Custom String generator, select the desired property and set the Property Type to Custom String.

Parameters

After you have selected the Custom String generator, you are offered to specify some additional parameters for the generated data:

Value

A string of macros and text that will be used to generate values. The default value of this parameter is: %BOOL(True/False).

You can use macros to generate and insert values of various types into the resulting string. Macro names start with the % character. You can either type the macro name, or click Add Macro and choose the desired macro from the drop-down list. Some macros may require specifying parameters (see Macros).

For more information on specifying custom string values, see Custom String Generator Rules.

Duplicate Each Value … Time(s)

Specifies how many times each generated value will be duplicated. The default value of the parameter is False.

After all of the required parameters are specified, ReadyAPI automatically shows the sample sequence of generated values in the sample field.

Also, you can discard all the changes you made in the generator’s parameters and restore the parameters set by default. To do that, click Set Default Values below the Sample field.

For more information on basic principles used to generate custom strings with ReadyAPI, see Custom String Generator Rules.

See Also

Custom String Generation Rules
Macro Reference
String Generator

Highlight search results