To do an interface test with jmeter, you need to log in first, because the interface parameters need to use the values in the login response data. During the debugging process, I found that the data in the login response was empty, which summarized several ways on the Internet:
1. Set the Content-Type in the http request to application/json or application/x-www-form-urlencoded. For more detailed Content-Type and parameter transfer methods, please refer to: https://www.cnblogs.com/liudinglong/p/12027979.html
2. In the http request, put the request data in "parameters" or " Message body data". Mine is to put the parameters required for login into the "message body data" to solve;
3. The data in the parameter is incorrect. The import username and password of the csv file I used, the password contains spaces, which also causes the data in the login response to be empty;
4. There are other ways on the Internet, for example: 1) Encoding the "content" in the http request Set to utf-8; 2) Check the "encoding" of the "parameter" in the http request subject