Jmeter parameterization in practice

Parameterization process
1. Find the data that needs to be parameterized
2. Prepare to provide the data source required for parameterization
3. Put the constants in the script----variables (using the previous data source data)

Jmeter parameterization method
1, CSV - need to configure the component usage scenario: account password

2. Functional
random number, time, counter counter

3. Variables

4. Programmatic beanshell


The CSV method is described below.
File name: The file path is best placed in the bin directory of Jmeter, so that you don't have to worry about giving the script to others, and others will not be able to run it.
insert image description here
insert image description here

Function Assistant----Randomly generate mobile phone numbers
135/137, etc. ${__Random(11111111,99999999,)}
insert image description here
${__time(,)}
insert image description here

Select the one-time controller component, and put the request interface that only needs one time into the "one-time controller", as shown in the following figure
insert image description here

Guess you like

Origin blog.csdn.net/weixin_45036829/article/details/109640400