How To Save Response To Variables In Postman.!

Zain Asssassin

When we work Apis testing on Postman, there we need to refresh access tokens to our variables.!, because after few time Token has Expired.!

So how can we auto assign new Token to Variable and we just call login api which will response Token, and then automaically assign to variables.!

Here is commn steps to follow.!

First get Some Knowladge about variables.!

in Postman there are three variable spaces,

1: Global (Accessable from everywhere)

2: Envoirnment (I dont know about it :)

3: Collection (Its Available just in Collection mean just in Current api folder)

How to set response to variable.!

First of all create variables in Collection variable area, lets Follow me.!

Step 1:

STEP 2:

Now lets save response to varable.!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Toseef Ahmad

Toseef Ahmad

Hy, i'm ReactJS Front End Developer And CYBER SECURITY Export. i love Computer Science!