Versions Compared

Key

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

...

Qualitia provides an option for creating environment variables

...

. This option

...

is enabled in

...

Develop, Execute, and Report

...

 screens of Qualitia Automation Studio. Environment Variables are project specific and each project shall have its own set of

...

You can use the environment variables in the following ways:

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

For example, 

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

Image Removed

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

Image Removed

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

Image Removed

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

If you want to execute iterations for a particular set of data, you can set the environment variable for that set to true and false for the other sets.
Take an example, where the same test case can be executed for a Japan and English versions of the application. Say a single test case have 100 tc datasets of which 50 are for Japan 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 Japan test data, and would need to alter the remaining test cases in the same manner. To avoid all this efforts, what you can do is mark the selection column for English as English [where English is a key created is the Environment Variable screen] and Japan datasets as Japan [again Japan is an environment variable]. When the test bed is ready to run the English version application with English datasets, then just mark the English variable as true in the Environment variable screen.

  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.

Child pages (Children Display)