How to stop thread If response assertion fails in Jmeter

后端 未结 2 1875
天命终不由人
天命终不由人 2021-02-19 05:52

I want to implement error handling in my script (like textcheck in LR).

I’m able to validate the Text using Response Assertion.

But my question is how to stop th

相关标签:
2条回答
  • 2021-02-19 06:39

    If you need to limit this behaviour to one request, add a Result Status Action Handler as a child of the request, then set it to Stop Thread

    0 讨论(0)
  • 2021-02-19 06:47

    In Thread group, choose Stop Thread under Action to be taken after a sample error. This will stop the test once assertion fails

    0 讨论(0)
提交回复
热议问题