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? Commented Aug 22, 2011 at 13:49
  • 3
    there is a sampler "Test Action". You can pause or stop thread using it Commented 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! Commented Aug 23, 2016 at 4:17

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.