Search code examples
jmeterjmeter-5.0jmeter-maven-plugin

Why does jmeter dashboard formats response assertion error wrongly?


JMeter dashboard shows error in a weird format, see below.

The response is correct, the majority of requests are succesfull.

Is there anything I should tweak?

Here is the response assertion:

enter image description here

Thanks in advance!

EDIT It seems to be some sort of diff, shows the same in view results: enter image description here


Solution

  • The "weird" format is defined in the ResponseAssertion source code and there is no easy way of amending it without changing the file and recompiling JMeter

    Other options are:

    1. Use "Custom failure message" section at the bottom of the Response Assertion:

      enter image description here

      enter image description here

    2. Or switch to JSR223 Assertion where you can implement whatever custom assertion logic and response message you want

      enter image description here

      enter image description here