Testing / Apache JMeter Interview questions
What are Assertions in JMeter?
Assertions check whether a sampler's response actually meets an expected condition, marking the sample as a failure if it doesn't - even if the server itself returned a technically successful HTTP status code.
Common types include the Response Assertion (checking response content for specific text or patterns), the Duration Assertion (failing if response time exceeds a threshold), and the Size Assertion (checking response size).
This distinction matters because a server can return HTTP 200 while still returning an error message or unexpected content in the body - assertions catch that kind of functional failure that a pure response-code check would miss.
More Related questions...
