Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Postman Tutorial Part 14 – Create, Manage and Use Global Variable In Postman

Posted on 02/19/2025 By admin

Hello folks,

We have already seen creating, managing and using environment variables in Postman.

We can select only single environment at a time in Postman and can use variables of that selected environment. We may have some variables which are common to each environment. It is not good practice to keep a separate copy of each common variable in each environment. It will not be a good architectural design.

Postman has something called Global variables which are available globally in fact at any scope. You can use global variables with or without selecting any environment. You can use global variables wherever you can use variables of an environment. Remember global variable does not belong to any specific environment.

  1. Click on “Manage Environment” icon at right top corner of Postman tool.

2. You will see below screen:

3. Click on “Global” button. Pass the desired variable’s name and it’s an initial value. Process is same as creating an environment variable. Only difference is that here you do not provide Environment name.

4. Click on Save button. You can see all variables ( Environment and Global) by clicking on “Environment quick look” icon.

5. You can quickly edit variables by clicking on provided edit button as well. Save button will be enabled as soon as there is any unsaved changes.

To use any global variable, it is not mandatory to choose any environment in drop down. We just need to use variable name as placeholder {{variableName}}. This placeholder will be replaced with its current value. For example: – {{URL}} will be replaced by “https://gorest.co.in/ ” from the declared global variable named “URL”.

You can see value by mouse hovering on {{URL}}.

Remember variable name is case sensitive. URL and url are two different variables.

Environment variable will take precedent always on global variable if found in both scope. If a selected environment has a variable which is also available in global scope, variable from environment will take precedence.

More about API Testing in upcoming posts. Stay tuned.

If you have any doubt, feel free to comment below.If you like my posts, please like, comment, share and subscribe.#ThanksForReading

#HappyApiTesting

Uncategorized

Post navigation

Previous Post: How To Iterate Map In Java?
Next Post: Are Your Selenium Scripts Ready For Parallel Execution?

Related Posts

Advanced TestNG Tutorials 35: How To Pass Multiple Group Names to be Run at Runtime in TestNG XML Using Beanshell Uncategorized
Selenium Interview Question 11 – Which Class Implements Alert Interface in Selenium WebDriver? Uncategorized
image – Make Selenium Easy Uncategorized
stream api in selenium Uncategorized
Introduction To Karate – A Unified Framework for API test-automation, mocks, performance-testing, and UI automation Uncategorized
selenium tutorials Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark