JMeter – Assertion Results
The result of the assertion is served through this listener. A list of samplers that passed and failed because they did not meet the assertion requirement is displayed. As shown in the image below, JMeter’s assertion result listener returns a message on failure:
How to add ‘Assertion Results’?
Follow the below steps:
- Select the appropriate element where you want to add the listener
- Test Plan
- Thread Group
- Controller
- Sampler
- Right-click on the element
- Hover the cursor on ‘Add’
- Hover the cursor on ‘Listener’
- Click ‘Assertion Results’
Assertion Results: Scope Each level, including sample, transaction, thread, and test plan levels, can add a listener. The assertion result is only presented according to the scope. If an assertion result listener is added below a sample, only the pass or fail status of that specific sample is displayed. Returns the asserted status of all samplers under that particular transaction handler if added under a transaction level.
Usage: When creating scripts, it is mainly used for debugging.
Disable the assertion result, and listener, while the test is running because it uses memory to write a record to a file.