step:
1. For adding thread group, HTTP request default value, viewing result tree, etc. refer to " JMeter Implements Bugfree Login Interface Test ". I won't go into details here.
2. Add HTTP request
Write the input parameters in Body Data . The format of the parameter is JSON .
3. At this point, if you run it directly, the following error will appear. This is because, when passing parameters in JSON format in JMeter , you need to add headers in the " HTTP Header Manager".
Or report the following error:
4. Add " HTTP Header Manager".
Content-Type:application/json
5. Run it again and the result is correct.