Global variables
Low Code Automation includes a feature called Global Variables, which allows you to define static values once and reuse them across multiple tests. This eliminates the need to repeatedly generate or enter the same data in every test.
For example, values that don’t change often, such as email addresses, shipping details, and payment details, can be stored as global variables. You could define a global variable like UserEmail
once and reference it in any test that requires the same email.
Global variables save time, reduce repetition, and ensure consistency across your tests, making your automation workflows easier to manage and maintain.
Create a global variable
To create a global variable:
- In Low Code Automation, expand Data configuration in the left pane and click Global variables.
- Click + Create variable.
- Enter a Name and Value for the variable, then click Create. Ensure that the name is unique. You can use this global variable across all tests in Low Code Automation.
Import a global variable in a test
To use a global variable in a test:
- In Low Code Automation, open the desired test and go to the step details page where you want to use Global variable.
- Click the + icon under Entered value and click Import a variable.
- In the Import variables dialog, select Global under Variables.
- Select the required variable from the global variable list. The variable will now appear under Variables section.
Manage global variables
To view, edit, or delete a global variable:
- In Low Code Automation, expand Data configuration in the left pane and select Global variables. A list of global variables will appear.
- In the USED IN column, you can see how many tests or modules use each global variable.
- Clicking on the option lets you view the respective tests/modules where this variable is used.
- To edit a variable:
- Click the ︙ icon next to the variable.
- Select Edit variable to modify the Name and Value.
- Click Save. A message appears informing you of the number of tests impacted by the change.
- Alternatively, you can edit the global variable directly from the test page by clicking the Edit icon.
- To delete a variable, click the ︙icon next to the variable and click Delete variable. A global variable can only be deleted if it is not used in any test.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!