Global verification function in JMeter



  • Can we put global verification function in JMeter script as like in load runner

    web_global_verification("Text/IC=ERROR", "Fail=Found", "Search=Body", LAST);



  • You can use Response Assertion configured like:

    enter image description here

    So if there will be error text (case insensitive) in any of Samplers that Sampler will be marked as failed

    enter image description here

    JMeter Assertions obey JMeter Scoping Rules therefore you need to either place it at the same level as the Samplers you would like to check or a level higher. If you make the assertion a child of the Sampler - it will be applied to that sampler only.


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2