Basic use of jmeter and solve the garbled response data

Basic use of jmeter

1. Create a thread group, no need to set other things
Insert picture description here
2. Add http request
Insert picture description here
3. Fill in the basic get request information
Insert picture description here
4. Post request information
Insert picture description here
5. Post and get parameters need to add information header Insert picture description here
6. Fill in this way
Insert picture description here
7. Fill in both After adding the view result book to see the response result, you can also see the request parameters for analyzing the problem
Insert picture description here
8. View the result tree introduction
8.1 Request parameters
Insert picture description here
8.2 Response parameters
Insert picture description here

Solve garbled response data

1. The first time you use it may be garbled
Insert picture description here
2. When the returned data contains garbled, you can modify an attribute in the [jmeter installation directory]/bin/jmeter.properties file: change the encoding format behind encoding= to utf-8, as follows : After
Insert picture description here
this step is changed, remove the # in front, that is, remove the comment
Insert picture description here
3. Then restart jmeter and it can be used
Insert picture description here

Guess you like

Origin blog.csdn.net/aaaaaaaaanjjj/article/details/115001744