Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to stop 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.

share|improve this question
Problem is solved. thank you – Melena Aug 22 '11 at 13:06
Can you explain how you did it? – Lyndon Vrooman Aug 22 '11 at 13:49
there is a sampler "Test Action". You can pause or stop thread using it – Melena Aug 22 '11 at 14:29
up vote 9 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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