# Environments

vREST provides you with the ability to create multiple environments for your test cases. By using which, you will be able to run the same test cases for your API in it's different phases like, prod, dev, test, etc.

Environments, in vREST, allows you to create global variables, which can be used in all your test cases. This makes it possible to create test cases which take inputs from these global variables (which can be set differently for each environment that you make).

When you open vREST, automatically you are given a 'default' environment. But you can create a custom environment which can inherit and override all the variables from 'default' environment.

# Creating Environment

Let us see, how can you create a custom environment in vREST NG.

  • Go to the Configuration Tab, in vREST NG application, and Click on Environments / Variables section.
  • Now, click on
  • To rename it, Change the value in Environment field and click on
  • Now, you can add multiple variables to this environment by clicking on and filling in the details (key and value).

# Switching Environments

To switch environment,

  • Go to Test Cases Tab.
  • Select the current environment from dropdown on top-left corner.