Skip to main content
No Result Found

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:

  1. In Low Code Automation, expand Data configuration in the left pane and click Global variables. Global Variables
  2. Click + Create variable.
  3. Enter a Name and Value for the variable, then click Create. Ensure that the name is unique. Variable Name 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:

  1. In Low Code Automation, open the desired test and go to the step details page where you want to use Global variable.
  2. Click the + icon under Entered value and click Import a variable. Import Global Variable
  3. In the Import variables dialog, select Global under Variables. Use Global Variable
  4. 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:

  1. In Low Code Automation, expand Data configuration in the left pane and select Global variables. A list of global variables will appear.
  2. In the USED IN column, you can see how many tests or modules use each global variable. Linked Tests
  3. Clicking on the option lets you view the respective tests/modules where this variable is used. Linked Variables
  4. To edit a variable:
    • Click the icon next to the variable. Edit 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. Edit Variable on the Test Page
  5. 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





Thank you for your valuable feedback

Is this page helping you?

Yes
No

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!

Talk to an Expert
Download Copy Check Circle