Versions Compared

Key

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


...

Qualitia Software Pvt. Ltd.

Environment Variable Feature

 

...

  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 shall will have its own set of environment variables.


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


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


For example, 


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


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



  1. The user 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 the user wants you want to execute iterations for a particular set of data, he you can set the environment variable for that set to true and false for the other sets to false.
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.

...


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.

...