how I can reuse the token from one collection to another in postman? So i can run in parallel multiple folders
I tried storing and reusing but haven't succeeded
pm.environment.set("token", responseBody.access_token);
how I can reuse the token from one collection to another in postman? So i can run in parallel multiple folders
I tried storing and reusing but haven't succeeded
pm.environment.set("token", responseBody.access_token);
Storing the token as global variable should do:
pm.globals.set("token", responseBody.access_token);
Postman has different variable scopes: Global, Collection, Environment, Data and Local:
Global variables enable you to access data between collections, requests, test scripts, and environments.
You can read more about it here: https://learning.postman.com/docs/sending-requests/variables/#variable-scopes