[Original] postman setting environment variables and global variables

One: Set Environment Variables

1. postman by changing environment variables to address rapidly changing environment.

2. You can now localhost: 80 Add to the environment

3. Click OK, variable information can be seen in the home environment variable information and settings have been added;

Two: Set the global variable

1. Set up a global variable 

Enter the global variable settings page;

2. Set variable values

key fill token, value fill 123456(fill in the specific token of value), the lower right corner Saveto save the global variable. If more than one can then save all filled out. (Js global variable value can be acquired to achieve)

3. Get variable values

In Headersadding a header, key fill token(self-imposed Interface), value of {{token}}(key set just global). Mouse over a displayed value of a specific value. It can also be a little upper right corner of the eyes, to see all global variables.

 

 

Guess you like

Origin www.cnblogs.com/HYanqing/p/11271613.html