Custom String Generator

Applies to ReadyAPI 3.52, last modified on April 18, 2024

The Custom String generator is one of the Data Generators in ReadyAPI. It generates various strings for a data source using the predefined template and uses them in requests and responses.

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

Custom String Data Generator

Click the image to enlarge it.

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