Basic attribute generators

UbsBooleanGenerator

Description

Generates true or false based on the configured probability.

Script Language

GROOVY

Parameters
Display name Description Variable name Data type Default value

True Probability

Probability for true (0..1 or 0..100).

trueProbability

NUMBER

-

UbsCategoryGenerator

Description

Generates a value from a predefined value list with optional weights.

Script Language

GROOVY

Parameters
Display name Description Variable name Data type Default value

Values

Comma-separated list of possible values.

values

STRING

-

Weighting

Optional comma-separated list of positive numeric weights.

weighting

STRING

-

UbsDateGenerator

Description

Generates a date or timestamp between start and end date. The output format is configurable via the format parameter.

Script Language

GROOVY

Parameters
Display name Description Variable name Data type Default value

Start Date

Inclusive lower bound (ISO date, ISO date-time or epoch millis).

startDate

STRING

-

End Date

Inclusive upper bound (ISO date, ISO date-time or epoch millis).

endDate

STRING

-

Format

DateTimeFormatter output pattern, e.g. yyyy-MM-dd or yyyy-MM-dd’T’HH:mm:ss.

format

STRING

-

UbsNumberGenerator

Description

Generates a random integer value within the configured range. The lower bound is configured via minValue and the upper bound via maxValue.

Script Language

GROOVY

Parameters
Display name Description Variable name Data type Default value

Minimum Value

Inclusive lower bound of the generated random number.

minValue

NUMBER

-

Maximum Value

Inclusive upper bound of the generated random number.

maxValue

NUMBER

-

Seed

Optional seed for deterministic random number generation.

seed

NUMBER

-

UbsPhoneNumberGenerator

Description

Generates a synthetic phone number for a country and output format.

Script Language

GROOVY

Parameters
Display name Description Variable name Data type Default value

Country

Country code (e.g. DE, CH, AT, US).

country

STRING

-

Format

Output format: E164 or NATIONAL.

format

STRING

-

UbsTextGenerator

Description

Generates a random text value. The generated text can be configured via length, character set, prefix and suffix.

Script Language

GROOVY

Parameters
Display name Description Variable name Data type Default value

Length

Number of random characters to generate.

length

NUMBER

-

Character Set

Optional set of characters used for random text generation.

characterSet

STRING

-

Prefix

Optional prefix added before the generated text.

prefix

STRING

-

Suffix

Optional suffix added after the generated text.

suffix

STRING

-

Seed

Optional seed for deterministic text generation.

seed

NUMBER

-

UbsUuidGenerator

Description

Generates a unique UUID. Optional version currently supports v4.

Script Language

GROOVY

Parameters
Display name Description Variable name Data type Default value

Version

Optional UUID version. Supported value: 4.

version

NUMBER

-