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:
So if there will be error text (case insensitive) in any of Samplers that Sampler will be marked as failed
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.