Member-only story

Variables in Postman

Bisma Latif
7 min readDec 30, 2022

--

Postman Variables cover image

In the second article for the series, API testing with Postman we will look into Variables in Postman. In this article we will learn:

1. What are variables?

2. Why do we need variables in Postman?

3. Creating a Variable in Postman

4. Types of Variables in Postman.

5. Preference for Types of Variables

In Postman, variables are values that can be stored and reused throughout a collection or environment. They allow you to parameterize your requests and responses, making it easier to test and debug your API requests and responses. Variables are key-value pairs and we can give any name to the variable and value. The key-value pair can store different values so tomorrow if you want to change this value we can change this value and store a different value the variable and hence, use them in requests as required.

why exactly do we need variables?

Take an example let us say this URL www.example.com is being used in multiple files or multiple API requests in postman.

So in all these requests, the same URL is being used now because this is common to…

--

--

Bisma Latif
Bisma Latif

Written by Bisma Latif

A writer, coder, and an avid reader, who puts her soul in everything she does! LinkedIn: https://www.linkedin.com/in/ibismalatif/

Responses (3)