postman environment variables
pm.environment.set("variable_key", "variable_value");
postman environment variables
pm.environment.set("variable_key", "variable_value");
postman environment variables in body
{ "customer_id" : "{{cust_id}}" }
postman environment variable
postman.setGlobalVariable("refresh_token",postman.getResponseHeader("Refresh_token") );
Postman Variables
just like variables in Java.
we can create variables in postman to reuse the value
1.Global variables: accessible everywhere in same workspace
2.Environment variables: accessible in selected environment
3.Collection Variables: belong to the collection itself and
only accessible within the collection
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us