(9), Jmeter uses CSV Data Set Config to implement parameterized users

      When using Jemeter for stress testing, it is often necessary to parameterize the user name and password to achieve the purpose of multiple users logging in with different user names and passwords. At this time, we can use CSV Data Set Config to achieve parameterized login:
1. Establish csv file (you can save it as a csv suffix file with txt), enter the account password to be tested:
 
2. Add 'CSV Data Set Config'
first through 'Add'->'Configuration Components'->'CSV Data Set' in the thread group Config' to add
 
 
the following is a brief description of each parameter of CSV Data Set Config:
FileName: Name of the csv file in the same directory (the csv file should be placed with the corresponding thread group jmx)
 
File Encoding: The default is ANSI
Varible Names: Definition The parameter names in the text file are separated by commas (equivalent to defining column names for the csv file) 
  
Allow Quoated data: Double quotes related to
Recycle on EOF: When set to True, the cycle value is allowed.
Stop Thread on EOF: When Recycle on If EOF is false and Stop Thread on EOF is true, after reading the records in the csv file, stop running Sharing Mode :
Set whether threads are shared The corresponding variable name, the variable name should be the same as the one set on the Variable Names of the above CSV Data Set Config 4.


 
To modify the number of threads
, 4 users are set here, so 4 threads are used:
 


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325928309&siteId=291194637