String Generator

Applies to ReadyAPI 3.56, last modified on November 15, 2024

The String generator is one of the Data Generators in ReadyAPI. It generates various strings and uses them in requests and responses.

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

String Data Generator

Click the image to enlarge it.

Parameters

After you have selected the String generator, ReadyAPI offers you to specify some additional parameters for the generated data:

Minimum Characters

Specifies the shortest character string that can be generated. The default value of the parameter is 1.

Maximum Characters

Specifies the longest character string that can be generated. The default value of the parameter is 8.

Note: When generating a great number of short strings (2 - 5 characters long), most likely, their values will be duplicated due to the limited number of possible character combinations which form a string.

Duplicate Each Value … Time(s)

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

You can also specify which characters should be used to generate character strings. For example, strings can be generated by using letters, digits, spaces and punctuation marks. If you want to use certain characters when generating character strings, select the appropriate check boxes. Otherwise, clear the check boxes.

The following check boxes are available:

  • Letters – By default, this check box is selected.

  • Digits – By default, this check box is selected.

  • Spaces – By default, this check box is selected.

  • Punctuation marks – By default, this check box is selected.

After you specify the needed parameters, you can obtain the sample values that have been generated by the engine. The values are displayed 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.

See Also

Custom String Generator
Custom String Generation Rules
Data Generator

Highlight search results