During the http request process, we usually use cookie technology to mark a client to achieve the purpose of concatenating related http requests. In the browser environment, the browser will automatically carry cookies for our requests. When using Jmeter for testing, we need to make relevant settings
Add cookie manager
- Subsequently, when a cookie is returned in the response header of the login interface, subsequent requests will automatically bring the cookie.
Add cookies manually
- Add cookies manually in HTTP Cookie Manager
- In this way, each interface will bring a response cookie