State Generator

Applies to ReadyAPI 3.53, last modified on June 07, 2024

The State generator is one of the Data Generators in ReadyAPI. It generates various state names and uses them in requests and responses.

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

State Data Generator

Click the image to enlarge it.


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


Specifies the name of the country whose states’ names will be generated. Currently, only one value is available: United States (the default value of the parameter).

State Name Format

Specifies the format of the state names to be generated. The available values are: Full and Abbreviated. The default value of the parameter is Full.

Duplicate Each Value … Time(s)

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

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

State (%STATE) Macro
Data Generator

Highlight search results