The ‘GenerateItem’ action is designed to create dynamic ‘items’ to use elsewhere in a script. Unlike the PickItem action which selects from a predefined list, this action is used for creating things dynamically such as randomised email addresses, passwords or dates.
This type generates randomised numbers into formats that can include pre-defined alphabetical characters.
The Format option is free text so you can enter anything into it. Any hash symbols (#) will be replaced with a random number between 0 and 9. Examples:
0161 ### ####
– 0161 723 1185 (landline phone number with pre-defined area code)+447#########
– +447882847294 (mobile number with pre-defined country code)PR##-##-A#
– PR51-08-A1 (random product/SKU code to a pre-defined format)AW## #DB
– AW13 9DB (random post code for a specific area)
This example will generate a random UK mobile number into the mobilenumber
variable name:

To use the generated item, enter $ScriptVariable.<Name>
where <Name>
is the name you gave when setting up the action.
The generated string can be input into a text field using either a SendKeys, Form or FormSelector action, dynamically placed in the URL used in an Open action, or in the body of an ApiCall action. Here is an example of it being used in a SendKeys action:
