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.

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

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

  • 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! – IAmMilinPatel Aug 23 '16 at 4:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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