jmeter:
Create a test plan
- Add – Thread (user)- Thread group
- Thread group – Add – Sampler -HTTP request
- HTTP request – Add – Monitor – View result tree
- HTTP request – Add – Monitor – Aggregate report
- HTTP request – Add – Monitor – Graphic report
Second, about parameters
- @getMapping (“/getxxxx/{straaa}”)
- If you pass the body argument
postman:
Methods/steps to pass the body parameter:
1. Input the request url in the address bar: http://127.0.0.1:8081/getmoney
2. Select POST.
3. Add key: Content-type, value:application/json to headers
4. Then click “Body “,” raw “and set it to JSON. ‘ ‘
{“userid”: 1}