You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by danimni <da...@gmail.com> on 2011/01/18 15:57:03 UTC

Thread group dependencies

Hi ALL,
I am running two thread groups:
1. The test plan thread group.
2. The monitor server thread group.

I am not sure how long the test plan will take, so I can't set the the
monitor server thread time, but I would like it to stop as the test plan
thread stops.
I tried to stop the monitor server thread with a 'While controller' (with a
flag variable set from the test plan thread. It didn't work for me.

Is there a way to tell the second thread group to stop when the first group
stops?
Any ideas?

Thanks! :)
Dan.
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/Thread-group-dependencies-tp3346281p3346281.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Thread group dependencies

Posted by danimni <da...@gmail.com>.
Thank you, sebb-2-2.
It worked.. :)

Dan.
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/Thread-group-dependencies-tp3346281p3347651.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Thread group dependencies

Posted by danimni <da...@gmail.com>.
Thank you :)
I will try that... 
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/Thread-group-dependencies-tp3346281p3347321.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Thread group dependencies

Posted by sebb <se...@gmail.com>.
On 18 January 2011 14:57, danimni <da...@gmail.com> wrote:
>
> Hi ALL,
> I am running two thread groups:
> 1. The test plan thread group.
> 2. The monitor server thread group.
>
> I am not sure how long the test plan will take, so I can't set the the
> monitor server thread time, but I would like it to stop as the test plan
> thread stops.
> I tried to stop the monitor server thread with a 'While controller' (with a
> flag variable set from the test plan thread. It didn't work for me.
>
> Is there a way to tell the second thread group to stop when the first group
> stops?

Yes.

> Any ideas?

Use a property, rather than a JMeter variable.

See:

http://jakarta.apache.org/jmeter/usermanual/functions.html#__setProperty
http://jakarta.apache.org/jmeter/usermanual/functions.html#__P
> Thanks! :)
> Dan.
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Thread-group-dependencies-tp3346281p3346281.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Thread group dependencies

Posted by Fazal Syed Ali <sy...@gmail.com>.
You might want to try running monitory server thread group as a sub-group of
a test case(thread group). In this way, the monitor server will stop as soon
as the test case ends.

Thanks,
Fazal

On Tue, Jan 18, 2011 at 8:57 AM, danimni <da...@gmail.com> wrote:

>
> Hi ALL,
> I am running two thread groups:
> 1. The test plan thread group.
> 2. The monitor server thread group.
>
> I am not sure how long the test plan will take, so I can't set the the
> monitor server thread time, but I would like it to stop as the test plan
> thread stops.
> I tried to stop the monitor server thread with a 'While controller' (with a
> flag variable set from the test plan thread. It didn't work for me.
>
> Is there a way to tell the second thread group to stop when the first group
> stops?
> Any ideas?
>
> Thanks! :)
> Dan.
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Thread-group-dependencies-tp3346281p3346281.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>