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 strings. Whilst very similar to the Password GenerateItem type, this type will only use alphabetical characters. Its intended use was for generating random names or addresses.
The Transform option allows you to specify the case of the string. Available options are: ‘UpperFirst’, ‘UpperAll’, ‘LowerAll’. If these do not fit your requirements then please get in touch – we would be happy to adapt the action for your needs.
In this example, I am using the action to generate a 13-character string with the first letter in upper case. The generated string will be assigned to the
surname variable in the
To use the generated item, enter
<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: