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
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
You can add a http request
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.