Jmeter- user-defined variables and functions used

First, the user-defined variables, reference variables

We can define variables in Jmeter.
Adding a User Defined Variables: Select Thread Group-> Right Add -> Config Element -> User Defined Variables
such as the definition of a variable called path, when using it with: $ {path}

Jmeter in reference to a standard format is: $ {path} accessible format
1. Add a variable: path

2. The variable referenced in Http Request

Two, Jmeter function

Help Function Description: https://jmeter.apache.org/usermanual/functions.html
format function call: $ {__ functionName (var1, var2, var3)}
wherein, __ functionName Function names in parentheses are parameters of the function, without you can not parentheses parameters.

Add Function: Menu Option-> Function Helper Dialog

select helper function by function, after setting the parameters, click button generation function to generate a string

Reference: https://blog.csdn.net/zhangmeng1314/article/details/83107451

Guess you like

Origin blog.csdn.net/chiboxi6938/article/details/89403640