When a thread group cycles more than 1 times, the data submitted in the request is the same. Some systems restrict the inability to submit the same data, and we load the CSV file data with the CSV data Set Config.
1 Create a text file with the input parameter value saved as a. csv file. Iterates through one row of data at a time.
2 Jmeter Thread Group Right-click "Add" Configuration Component "CSV Data set Config [Dinghanhua]
3 CSV Data Set config edit page
FileName: Absolute path to File
Encoding: File Encoding
Variable names: argument name, Parameter name, .... Corresponds to the parameter value one by one within the file.
Delimiter: Default comma
Allow quoted data: There are parameters inside the file that contain delimiters. In the CSV file, use "" to enclose the parameters containing the delimiter.
Last three items: 1 The file finishes reading whether to terminate the loop 2 if the file finishes reading stop process 3 shared scope
4 referencing parameters in the request
5 thread groups set the number of cycles to run 4 times. Reads one row of data at a time.
The end!
Jmeter-6 CSV Data Set Config file Import