IT:AD:Postman:HowTo:Manage Environments
Summary
Environments are just collections of groups of Variables, that can then be referenced in the scripts your run.
For example, you can make two Environments called APPxyz-DEV-LOCALHOST, and APPxyz-ST, that contain a common variable named WEBSERVER-URL.
Later, you can create scripts that reference this variable webserver-url, and as you switch Environments, the url changes. Neat/easy.
Process
Adding a new Environment
- From the Environments Drop down, Select the
Manage Environments - You'll see options to
Add|Import|Globals.- At time of writing there's a bug in the UI: if you are looking at an Import page, or other sub page, hit the Back button to get back to the main Add|Import|Globals page
- Select
Add. - Give it a name, add some vars, and save it.
Importing an Environment
- From the Environments Drop down, Select the
Manage Environments - You'll see options to
Add|Import|Globals.- At time of writing there's a bug in the UI: if you are looking at an Import page, or other sub page, hit the Back button to get back to the main Add|Import|Globals page
- Select
Import. - Select a previously downloaded Environments file (maybe shared around your dev team) and upload it. DOne.
Editing variables in an environment
* From the Environments Drop down, Select the Manage Environments
* You'll see options to Add|Import|Globals.
- At time of writing there's a bug in the UI: if you are looking at an Import page, or other sub page, hit the Back button to get back to the main Add|Import|Globals page
* Select the Edit button beside one of the Environments, and edit the variables.