6

I need to stop a thread in JMeter when some condition is satisfied. How can I do this? I suppose there should be some method like Thread.Stop() or something like this but can't find concrete info.

2
  • 1
    Can you explain how you did it? Aug 22, 2011 at 13:49
  • 3
    there is a sampler "Test Action". You can pause or stop thread using it
    – Melena
    Aug 22, 2011 at 14:29

1 Answer 1

9

JMeter thread can be stopped with standard JMeter sampler Test Action. There are 3 options: Pause, Stop and Stop Now.

1
  • How exactly would you use this sampler to configure to check whether a certain condition is satisfied? For example, I want to stop all threads if any one of them fails or gives an error. How to configure Test Action Sampler for such condition? This is just one condition, there can be many other conditions which if satisfied the threads need to stop! Aug 23, 2016 at 4:17

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.