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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.