Smarter Testing with Postman: Global Variable Essentials

 How to set global variable in Postman

Set Global variable in Postman


In this article we will learn how to set global variable in postman . There are different variable scope you can set in postman as shown below but in this article we will see how to set a global variable in postman .

You can also visit the official site for more information .


Set Global variable in Postman

Setting up Global variable :

- Open your postman and on the top right corner you will see an eye type icon just click it as shown in the image .

Set Global variable in Postman

- Now you will get a pop-up and you will see two sections Environment and Global , just click on edit button present just beside the Global section .

Set Global variable in Postman

-Now simply provide your variable name on the VARIABLE section and the value of the variable on both INITIAL VALUE and CURRENT VALUE section and simply click on save as shown below .

Set Global variable in Postman


- After click on save button you may a get a screen like below but if you want to set that configuration you can go on otherwise just cancel it .

Set Global variable in Postman

That's it your variable is set and you can access the variable anywhere in your postman by writting your variable name inside {{ variable_name }} .

Set Global variable in Postman



Previous Post Next Post

Contact Form