You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Philippe Mouawad <ph...@gmail.com> on 2017/02/18 14:50:11 UTC

TestPlan : "Run tearDown Thread Groups after shutdown of main threads"

Hello,

Today, when you shutdown a running Test plan with shutdown.sh, the tearDown
Thread Group won't run unless you check this option.

This does not look logical to me, as a shutdown is a clean stop which
should behave the same as a Test Plan that ends regularly.
If you don't want it to run, then just call stop.

So I would tend to change default value to be checked.

In my experience the first time I used setup Thread Group was that I wanted
to:
- Generate an Oracle AWR from it
- Restore some configuration that had been changed by setup Thread Group

I was very surprised that it didn't run when I cleanly shutdown the test
until I found it was due to this option.

Thoughts ?

Re: TestPlan : "Run tearDown Thread Groups after shutdown of main threads"

Posted by Milamber <mi...@apache.org>.

On 18/02/2017 14:50, Philippe Mouawad wrote:
> Hello,
>
> Today, when you shutdown a running Test plan with shutdown.sh, the tearDown
> Thread Group won't run unless you check this option.
>
> This does not look logical to me, as a shutdown is a clean stop which
> should behave the same as a Test Plan that ends regularly.
> If you don't want it to run, then just call stop.
>
> So I would tend to change default value to be checked.
>
> In my experience the first time I used setup Thread Group was that I wanted
> to:
> - Generate an Oracle AWR from it
> - Restore some configuration that had been changed by setup Thread Group
>
> I was very surprised that it didn't run when I cleanly shutdown the test
> until I found it was due to this option.
>
> Thoughts ?

I agree with you, check this option could be better for my thinking way. 
We could change the default behavior and/or we could introduce a new 
command line option of shutdown script to to override the tear down 
option to force (or not) the execute of the teardown thread(s).

Note: If we changes the default option (checked), perhaps, would be 
better to 'invert' the option, i.e. leave unchecked but change the label 
(and the internal condition) to "Don't run tearDown TG after shutdown of 
main threads"...


>