Three parameterization methods-jmeter

User parameters

 

 

 

 Parameterization via CSV Data Set Config

Add-> Configure component-> CSV data file settings

Create a new txt file, write your parameterized values ​​in the file, and separate the values ​​with commas

Select the file

◆ File Encoding --- File compilation method, generally empty

◆ Vaiable Names --- The parameter items represented by each column in the file; each parameter item is separated by a comma; the name of the parameter item should be consistent with the parameter item in the HTTP Request.

◆ Delimiter --- If the file is separated by commas, fill in the comma; if you use TAB, fill in \ t;

◆ Recycle on EOF? --- True = When reading the file to the end, read the file again, False = When reading the file to the end, stop reading the file

◆ Stop thread on EOF? --- Effective when Recycle on EOF? Is False; True = When reading the file to the end, stop the process.

The other steps are the same as the previous method, according to the parameters set in the sampler and thread group through the helper function random parameterization

Tools-> Function Assistant dialog box-> Select function

After setting, press the generate button

Copy the generated function to the parameter value corresponding to the sampler

 

Guess you like

Origin www.cnblogs.com/Nicloe2333/p/12692808.html