Skip to main content
Skip table of contents

Environment Variables

Qualitia Automation Studio (QAS) allows adding environment variables to use any particular parameter multiple times during the course of the project. Once added, user can use these variables to add static or parameterized data for test case developments. This reduces hassle of adding the same parameter multiple times and saves time when developing test cases. 

Earlier, Qualitia supported only a single default environment variable set, which limited flexibility during test executions. With the latest update, multiple Environment Variable Sets are now supported. This enhancement enables users to create, manage, and assign different environment sets based on execution requirements — offering greater control, reusability, and efficiency in managing test configurations.

You can now execute test cases from the Editor, Debugger, and Suite using either the default or any custom Environment Variable Set.
Key Features of Environment Variable Sets

  • Introduction of Multiple Environment Variable Sets

    • You can create multiple environment variable sets to cater to different test environments.

    • Each set can have its own set of variables, improving modularity and reducing redundancy.

  • Managing Environment Variable Sets

    • You can create, edit, clone, and delete environment variable sets efficiently.

    • A new edit option allows direct modification of environment sets.

    • You can export environment sets for better portability across projects.

  • Enhanced User Experience

    • You can expand or collapse environment sets using intuitive UI controls.

    • Clicking on the edit button directly opens the respective environment set page in the settings tab.

  • Multi-User and Project Privileges

    • Multiple users with the right project privileges can now access and use the same environment variable sets.

    • Users can create new environment variables within a set using the ‘+’ button in the environment set UI.

These Environment Variables are project specific, and each project shall have its own set of variables. These variables can be used across tasks and test cases in a particular project.

📚Prerequisites

  1. User should have the QAS client installed.

  2. Projects should have been created.

Managing Environment Variables

Create an Environment Variable Set

  1. Log in to QAS - Client.

  2. Navigate to the Environment Variable menu:

    • Access Project Management from the left navigation of the QAS - Client. Select the project and click Configuration.

    • Access Settings from the left navigation of the QAS - Client. On the Settings screen, select Project Configuration.

  3. Expand Project Configuration and click Environment Variable.

    image-20250415-054605.png
  4. When the Environment Variable page is opened for the first time, the Default Environment Set will be visible in expanded mode with an empty environment variable row.

  5. Enter Name and Value if you want to add an environment variable to the default set.

  6. To create a new environment set, click + icon. It will open the Create Environment Set popup window.

  7. Enter Name and click Create; if you don’t want to save the set click Discard.

    image-20250415-093652.png
  8. Once you have created the environment set, you can now add the environment variable to it by entering the Name and Value.
    Note: You can add multiple environment variables to each set.

  9. You will see the list of environment variable sets along with its added variables and values.

  10. Click Save to continue; otherwise, click Discard.

  • Edit an Environment Variable
    You can edit an environment variable by double-clicking the value field.

    image-20250415-100807.png
  • Delete an Environment Variable
    Hover over the three dots next to value and click Delete to delete the environment variable.

    image-20250415-101501.png

If a user has locked the Environment Variable Settings, other users cannot add new variables. You can see a Lock icon next to Refresh on the settings screen if the Environment Variable Settings is locked.

Edit an Existing Environment Variable Set

To edit the existing environment variable set

  1. Log in to QAS - Client.

  2. Navigate to the Environment Variable menu:

    • Access Project Management from the left navigation of the QAS - Client. Select the project and click Configuration.

    • Access Settings from the left navigation of the QAS - Client. On the Settings screen, select Project Configuration.

  3. Expand Project Configuration and click Environment Variable.

  4. On the Environment Variable window, you will see the list of environment sets.

  5. Go to the environment set you wish to edit and click the pencil icon.

  6. It will open Edit Environment Set popup window, where you can edit the name of the environment set.

  1. Click Save to save the changes; else, click Discard.

Delete an Environment Variable Set

To delete an environment variable set, click the Delete icon, as highlighted in the following screenshot:

image-20250415-100116.png

If an environment variable is associated with a test case or suite, you won’t be able to delete it.

Clone an Existing Environment Set

You can duplicate an environment set by clicking on the Duplicate icon, as shown in the screenshot below.
All environment variables within the selected set will be copied to the new set.

image-20250415-102054.png

Export an Existing Environment Set

You can export an environment set along with all its environment variables by clicking on the Export icon, as shown in the screenshot below.

image-20250415-102459.png

Offline Execution

  • When you export a suite for offline execution of a test case, you need to select the environment variable set along with the execution profile.

    image-20250415-103129.png
  • After exporting a suite, when you navigate to the Configuration Manager to configure the suite, the exported Execution Profile and Environment Variable Set will be displayed.
    Note: The Execution Profile and Environment Variable Set cannot be changed from the Configuration Manager. To apply a different Environment Variable Set, you must export the suite again with the desired set selected.

    image-20250415-103628.png
image-20250415-103628.png
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.