ReadyAPI environments allow you to quickly change the test setup depending on the target environment.
With environments, you can easily switch between different sets of SOAP and REST services, project properties and database connections.
|Note:||Environments can include only project properties. Test suite properties and lower-level properties will not be available.|
You can configure your environments in the Environments editor. To open it, click on the toolbar.
To switch between environments, use one of the following commands:
Use the drop-down list on the control bar.
Double-click an environment in the Environments editor.
Right-click an environment in the Environments editor, and select Set Active.
<project name>.setActiveEnvironment(<environment name>) code line in the setup or teardown script, or in the Groovy script test step:
In GUI – On the Overrides tab, select the environment you need in the Environments drop-down list.
|Note:||If you need to override the Endpoint, Username, and Password values, do this with the
In command line – Specify the environment you need by using the
-E argument, for example: