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.
- 1Can you explain how you did it?Lyndon Vrooman– Lyndon Vrooman2011-08-22 13:49:06 +00:00Commented Aug 22, 2011 at 13:49
- 3there is a sampler "Test Action". You can pause or stop thread using itMelena– Melena2011-08-22 14:29:14 +00:00Commented Aug 22, 2011 at 14:29
Add a comment |
1 Answer
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– IAmMilinPatel2016-08-23 04:17:49 +00:00Commented Aug 23, 2016 at 4:17