A new version of Qualitia Automation Studio for Web and Mobile 7.2.x is now available. We highly recommend you upgrade. Find more details here.

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 2 Next »


  1. A menu option for creating environment variables is provided. This option shall be enabled in the Development, Execute and Report Tab.

  2. The environment variables can be used across tasks and test cases in a particular project.
  3. Environment variables are project specific. Each project will have its own set of environment variables.


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.


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



  1. You 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.


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.



  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.



The user can also set the column directly as true or false without using any environment variables.

III.Multiple keys within environment variable can also be used.


  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.



  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.


  • No labels