How to Postman environment variable settings. Knowledge in 3 minutes

POSTMAN環境変数 Knowledge for Testing

This article uses Postman for Mac , Version 10.0.32

In Postman, it is useful to set environment variables in Postman for the domain of the test environment, etc. to which requests are sent, in case you want to change the URL of the request destination.

In this article, we will explain how to set environment variables in Postman.

Step for setting environment variables

  1. Select “Environments” from the side menu. If nothing is set, the following screen will be displayed, click “Create Environments

2 Describe any environment name and register information about the variable.

3. For example, register “base_url” in the VARIABLE column, select “default” for TYPE, and set “” for Initial Value and Current Value.

The meaning of each column is as follows

VARIABLE is the name of the variable.

TYPE can be either “default” or “secret”. If “secret” is selected, the value portion is masked and all members are not visible. This is useful when using Postman with multiple members and there are values such as passwords, tokens, keys, etc. that you do not want to be displayed to the members. Conversely, “default” displays the values as normal.

INITIAL VALUE value is synchronized with your account in Postman and can be shared with the team you are collaborating with (in Postman).

CURRENT VALUE value is used locally by the Postman user and is not synced to the account or shared with the team unless you choose to keep it.

4. If you want to use environment variables set by request, first select them in the environment selector in the upper right corner of workbench

5. If you want to use an environment variable in the request, use double curly brackets to indicate the name of the variable


Send a request stating the following and you should be able to confirm that you can send your request

This is a 3-minute explanation to understand environment variable settings in Postman.