How to Postman environment variable settings. Knowledge in 3 minutes

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 “https://test-hack.com/” 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

{{base_url}}

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.

Test-Hack

Share
Published by
Test-Hack

Recent Posts

“Seven Basic Tools of Quality Control” for Web App tester

"Seven Basic Tools of Quality Control" Difference between “New” and “Old" "Seven Basic Tools of…

2 months ago

What is Edge AI? Knowledge in 3 minute

First, what is Edge Computing? Before understanding Edge AI, it is helpful to first understand…

5 months ago

What does usability testing do? Knowledge in 3 minute

Usability Testing is described in the ISQB Glossary as follows Usability TestingTesting to evaluate the…

5 months ago

What is “Shift-left” ? Knowledge in 3 minutes

Do you understand what the term "shift-left" means?In this article, we will explain "What is…

5 months ago

What is “Inception deck” ? Knowledge in 3 minutes

What is "Inception deck" ? Inception Deck is one of the practices of Agile development…

5 months ago

What is “CURD”?Knowledge in 3 minutes

You may occasionally hear about this CURD in the field of system development and testing,…

5 months ago