Performance testing tools Jmeter of parametric user-defined variables ---

In the process we use, sometimes inevitably need to modify some of the names that use the same name more if we need to modify one by one, requires a lot of time, under this scenario, we can use the user's self jmeter define the variable component

Case:

Step: 1, adding a thread group ------ 2, add user-defined variables ----- 3 http request was added (this step may appear multiple times) ----- 4 Tree View Results

2, the user defined variable settings

f44ac03deae24f4c9e25f9d7a6aa86ca.png

Here, because www.baidu.com may appear multiple times, it can be used here instead of in advance ip variable, so the following is more convenient to write

3, add http request

05f8a8e2d775498cbef2375c8a18faf5.png

You can add a http request

7219916e2c2440ad953546601e2141ac.png

4, and then add the result tree, run, view the results

to sum up:

1, use: a position corresponding to the parameters that need to use, using the variable name} {$ alternative.

2. Scenario: When the test environment changes, we only need to modify the IP one can make another script immediately applied to the test environment, without the need to modify the script one by one.

Guess you like

Origin blog.csdn.net/IT_studied/article/details/89973189