Syvizo

Environments



There are situations when you want to test the same set of APIs in different environments. These environment may have different values for some variables such as name of the domain, data values in headers or parameters or even request bodies. 


In the Environments section, you can configure such variables. 

Click on Environments tab and you can see the available environments in the left menu. Clicking on any of the environments will show the configured variables in the right panel. You can add variables in the environment by entering variable name and its value in the text boxes in last row and clicking “Add” button. 

To remove any variable, click on remove button (red ‘X’) in the right column for the environment.


You can have different environments and each environment can have different set of values. 


When you want to use the values from any environment, you can enable the environment by selecting it on the right top of the screen in Test API, Validations and Test Set sections:




The variables which you would like to be replaced should be specified between “${” and “}”.

For example, you would like the domain url to come from the selected environment, you can specify it as ${domain_url}. At runtime, the value of the variable domain_url will be looked for in the selected environment the variable will be replaced by its value in that environment.

The variables can be in headers, parameters or request body or authorisation. 


Do note that only values can have variables and not the names in case of headers, parameters or authorisations.


On this page