jmeter Interface Test (foundation)

A, jmeter creation request

1. Run jmeter: jmeter.bat
2. Right-testing program, add a: Thread Group
3. Right thread group added earlier, add a: http request
4. Fill in the request message:
 
 
5. Right thread group, add Listener - View Results Tree
When 6.jmeter first time, in response garbled, then the bin directory jmeter, locate jmeter.properties file, sampleresult.default.encoding arranged utf-8, and then to restart jmeter
sampleresult.default.encoding=utf-8

Two, jmeter set assertion

1. Right thread group -> assertion -> Response Assertion
2. Set assertion name, select the test fields: response text / response code ......, pattern matching rules

3. Add a test mode, such as:
 

 
carry out! You can add more assertions

Three, jmeter data parameterization

1. Right thread group -> Add disposed Original -> CSV data file settings
2. Local build a txt file, the contents of the output parameters: for example, registered need to fill in the account name and password

Save ~
3.jmeter click CSV files, import local files: Click [Browse]
4.CSV parameters: below

 The set up, run, the ok ~

 

 

 

 
 
 
 
 
 
 
 

Guess you like

Origin www.cnblogs.com/Qliupeng/p/11867937.html