An expression is used to define how data could be randomly generated. Both mocked SOAP and REST web services supports expressions. An expression always contains five elements:

  • Dollar sign ($)
  • Start bracket
  • Expression name
  • Arguments
  • End bracket

Each type of expression have predefined set of allowed arguments. An argument is always includes a name and a value. There are three types of arguments: Text, Number and Array:

  • Text: The text argument is representing a String value and always starts and ends with a quotation mark.
  • Number: The number argument is representing a Double value.
  • Array: An array can contain multiple values with mixed types.


Random Boolean

The Random Boolean expression will generate random boolean value.


Random Date

The Random Date expression will generate a random date.


Random Date time

The Random Date expression will generate a random date time with the following format: yyyy-MM-dd’T’HH:mm:ss.


Random Decimal

The Random Decimal will generate a random decimal value (Float).


Random Double

The Random Double will generate a random double value.


  • min: The min bound.
  • max: The max bound.


Random Email

The Random Email will generate a random email.


  • domain: The domain.
  • min: The min length of username.
  • max: The max length of username.
  • topDomain: The top domain.


Random Enum

The Random Email will pick a random enum.


  • values: A text array with the available enum values.


Random Float

The Random Float will generate a random float value.


Random Integer

The Random Integer will generate a random interger value.


  • min: The min bound.
  • max: The max bound.


Random Long

The Random Long will generate a random long value.


Random Password

The Random Password will generate a random password.


  • min: The min length of the password.
  • max: The max length of the password.


Random String

The Random String will generate a random string with a length between 5 and 15.


Random UUID

The Random UUID will generate a random UUID.


Path parameter

Extract a path parameter from the URL and include it in the mocked response.


  • parameter: The name of the parameter that will be extracted and included as a part of the mocked response.