You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by waseemfa <fa...@gmail.com> on 2011/12/23 10:58:46 UTC

Test through a config file

Hi,

I want to create a test plan with multiple thread groups running in it
sequentially.  Can i have multiple thread groups and specify from a config
file which thread group to run and which ones to ignore.

Thanks in advance,
Waseem

--
View this message in context: http://jmeter.512774.n5.nabble.com/Test-through-a-config-file-tp5096775p5096775.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Test through a config file

Posted by Flavio Cysne <fl...@gmail.com>.
Waseem,

    I think you can try this way:

    1. declare a test plan variable that can be assigned remotely and a
default value. Like this:  ${__P(myvariable,0)}
    2. add an If Controller in every thread group and define a distinct
conditional value to each one. Like this: (${myvariable} == 0) ||
(${myvariable} == 1)
        this way, you can run every thread group, run more than one or only
one. Think myvariable value as a grouping number.
    3. start test using the -Gmyvariable=value, if you are running a
distributed test, or -Jmyvariable=value, if is a local test.

    There are many to do what you want, but this is the one I realized at
first.

Obs.: If you run this test on GUI, remember to change default value to your
desired value.

Hope this helps you.
Flávio Cysne

2011/12/23 waseemfa <fa...@gmail.com>

> Hi,
>
> I want to create a test plan with multiple thread groups running in it
> sequentially.  Can i have multiple thread groups and specify from a config
> file which thread group to run and which ones to ignore.
>
> Thanks in advance,
> Waseem
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Test-through-a-config-file-tp5096775p5096775.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>