Step 2 – define the JMeter scripts

Using JMeter can be very complex. In our case, we will only use parts of the necessary elements to complete the testing scenario. This table lists the use of JMeter elements in our case and also the configuration needed in each element:

JMeter elements

Usage and scenarios

HTTP Cookie Manager

It's used to maintain the authenticated cookie session after sign-in.

HTTP Header Manager

It's used to simulate browser behaviors with HTTP headers. We will apply the Chrome HTTP header in our case.

View Results

It's to review every HTTP request and response.

Response Assertion

The Response Assertion is included in every HTTP request to validate the HTTP request gets the expected HTTP response. ...

Get Practical Security Automation and Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.