I tried global Response Assertion like when you get text "Error" in Response it should fail that response. but it is not working. Could you please give how to over come the issue. enter image description here

enter image description here

1 Answer 1


You're using incorrect value in Apply to field, you're getting this ERROR in a Sub-Result while Assertion is checking only top-level SampleResult(s)

You need to tick Main sample and sub-samples box in order to apply the assertion to Sub-Results as well:

enter image description here

More information: How to Use JMeter Assertions in Three Easy Steps

  • Thank you it is working now. It is working by selecting "Contains" under "Pattern matching rules"
    – user41456
    Commented Dec 19, 2019 at 9:37
  • Convert your comment to answer and accept it as a solution.
    – Prome
    Commented Dec 20, 2019 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.