Header

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

In order to use any particular parameter multiple times during course of the project, Qualitia allows adding environment variables. 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 in Qualitia Automation Studio. 

This option is enabled in Develop, Execute, and Report screens of Qualitia Automation Studio.

(warning) 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.

Managing Environment Variables

You can manage Environment Variables through Version Control. Qualitia provides the following two types of Environment Variable values:

  • Active value: This value will be local value and will always be selected by default for Execution.

  • Global value: This value will be shared across all users, provided version control is configured. It will be shared automatically whenever it is created.



Note:

Active value can be blank. Active value and Global value can be same.

Creating an Environment Variable

 An Environment Variable is used to specify a common value that is needed in multiple test cases and tasks for a project.

To create an Environment Variable:

  1. Do one of the following:
    • From the Expand Menu, click Project Management > Configure > Project Configuration
    • From the Expand menu, click Settings Project Configuration
  2. Click the Environment Variable menu present in the left pane.
  3. Enter the variable in the Name field. For example: URL.
  4. Enter the associated value in the Active Value field. For example: https://www.google.com/.

  5. Click the Arrow icon (highlighted below) to create the environment variable:
  6. Click Save.

    You can now use this variable in Test Cases and Tasks as displayed in the following image:
    (info) When using Environment Variables in Test Cases or Tasks, make sure you enter the variable name inside braces “{}”.


Qualitia Automation Studio does not support nested variables.

Adding Variables when Using Test Data

If you want to execute multiple iterations for particular set of data, you can set environment variable for that set as “True” and for the other sets as “False”.

For example, there is an application where the same test case is to be executed for Japanese and English versions and you have single test case with 100 TC datasets of which 50 are for Japanese and 50 for English. Hence, in a normal Qualitia methodology, if you need to run all the English datasets then you would need to mark True in the selection column for the 50 test data for English and mark False for the Japanese test data, and would need to alter the remaining test cases in the same manner. To avoid all these efforts, you can create two separate variables as English and Japanese. When you want to run the test cases of English, set the environment variable value as True for English and False for Japanese on the Environment Variable screen and vice versa.

Then mark the selection column for English language as English [where English is a key created on the Environment Variable screen] and Japan datasets as Japanese [again Japanese is an environment variable]. When the test bed is ready to run the English version application with English data sets, then just make sure the value set for English variable True on the Environment Variable screen.

(info) When defining values in the datasheet, make sure you are providing values inside braces “{}”. 

Publishing an Environment Variable

The Active value is a local value that is used for test execution. To share the Active value across different users, you need to publish it to a Global value.

To publish the Active value to a Global value, click the Publish icon, as highlighted in the following screenshot:

Editing an Existing Environment Variable

To edit the existing environment variable:

  1. Navigate to the Environment Variable menu through one of the following ways:

    • From the Expand Menu, click Project Management > Configure > Project Configuration

    • From the Expand menu, click Settings Project Configuration

  2. Click the Environment Variable menu present in the left pane.

  3. Now, double-click on the Active Value textbox to edit the field (the Global Value textbox cannot be edited).

  4. Enter a new value for the environment variable in the Active Value textbox and click Save.

  5. The Active value will be updated to the new value. To share the Active value across different users, you need to publish it to a Global value.

  6. Click the Publish icon, as highlighted in the following screenshot:

  7. Click Save. The Global value will be updated to the new value.

Deleting an Environment Variable

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

To undo the delete operation performed above, click the Undo-Delete icon as highlighted in the following screenshot:


  • No labels