Generate Random Identifier

You can use a Groovy script to generate random values and use them to enhance your tests.

This topic describes how to generate random IDs with the Universally Unique Identifier (UUID) feature.

Where to use

You can use this script anywhere in ReadyAPI.

Examples

  • The following code demonstrates how to generate a UUID and use it as a variable:

  • The following code demonstrates how to generate a UUID in a string:

See Also

Publication date: