Jmeter global variable and user variable setting and use

Jmeter global variable and user variable setting and use

Global variable

1. Add global variables
Insert picture description here
2. Set
${__setProperty(token,"token123",)} The left side of the brackets is the function, and the variable name and value in the brackets are the variable name and variable value, which can be changed according to the needs of your own scene
Insert picture description here
3. Use
${__property( token)}
Note: When I set up, "token123" carries quotation marks, so when I use it without quotation marksInsert picture description here

User-defined variables

1. Setting
These two are the same to me, I don’t know what yours look like
Insert picture description here
2. Configuration
Insert picture description here
3. Use
Insert picture description here
4. Use in other thread groups

Insert picture description here

Guess you like

Origin blog.csdn.net/aaaaaaaaanjjj/article/details/115068617