Assertion Results

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:

JMeter - Assertion Results

How to add ‘Assertion Results’?

Follow the below steps:

  1. Select the appropriate element where you want to add the listener
  2. Right-click on the element
  3. Hover the cursor on ‘Add’
  4. Hover the cursor on ‘Listener’
  5. 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.

Scroll to Top