Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Qualitia Software Pvt. Ltd.

Environment Variable Feature

 

...

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

...

The user to use the environment variables in the following ways:

  1. Set certain variables and use these variables throughout the test cases.

...

  1. Create environment variable from the "Setting" Menu Option.

...

  1. Add a variable named "URL" and set the value of "URL" to http://www.google.com.

Image Removed

  1. The user can now use this environment global variable throughout the test case as shown below

...

  1. The environment variables can also be used for setting the Selection column for the iterations in the data sheet.

...

  1. Set the values for the language to execute to true and rest languages to false. In the below figure, English language has been set to true.

Image Removed

  1. Use the environment variables in the Selection column in the data sheet for the iterations. In the below figure, Iteration 2 and 5 are set to {English} which is true and so it will get executed. Iterations 1, 3, 4, 6, and 7 will not get executed.

...

  1. Create an environment variable ‟env1‟ with value say „true‟. Create another environment variable say „env2‟ with value „{env1}‟. Now use „env2‟ in a test case as the data. It should use the value ‟true‟ as the test data.

Image Removed

  1. Create environment variable „env1‟ with value say „env2‟. Create another environment variable „env2‟ with value „env3‟.Create third environment variable „env3‟ with value say „true‟. Now use the test data „{env1}‟ in one of the step of a test case. It should use the value ‟true‟ as the test data.

Image Removedvariables. These variables can be used across tasks and test cases in a particular project.

Related topics

Child pages (Children Display)