City (%CITY) Macro

Applies to ReadyAPI 3.53, last modified on May 15, 2024

The City macro is used to insert city names into the strings generated by a data source using the Custom String data generator.

The macro is an analog of the City data generator.


The macro has the following syntax:



The macro does not have any parameters.


The following example demonstrates how to use the City macro:

  • City: %CITY

    Example: City macro in Data Generator

    Click the image to enlarge it.

    Generates a string containing a city name for a data source.


For more information on adding macros to custom strings, see About Custom String Generator.

For more information on general rules used for specifying macro parameters, see Custom String Generator Rules.

See Also

City Generator
Custom String Generator
Macro Reference

Highlight search results