eBook > The JMeter Playbook: Build, Scale, and Optimize Performance Tests
Chapter 4: Assertions & Logic Controllers
A test that only sends requests without validating the responses is incomplete. A 200 OK status does not necessarily mean that the response body is correct. Moreover, a test which sends requests in a flat sequence cannot model real user journeys that include loops, conditions, and transactions.
This chapter covers two essential element types:
- Assertions - verify that server responses meet your expectations.
- Logic Controllers - control the execution flow of Samplers within a Thread Group.
Let’s learn how to add custom pass/fail criteria to requests with Assertions.