Hi Viet,

One kludgy thing you could do is to create a perl or shell script to
modify your .jmx (xml) file and write a new temporary .jmx file with the
appropriate thread groups enabled/disabled. Your script would then run
that temporary .jmx. At the end, your script would erase the temporary
.jmx.  This should be easy enough if you give your groups unique names
for which you can search with a regexp.  Then just search for the first
enclosing ="enabled" (or disabled), and set it to what you want.

Regards,
Marc

viet nguyen wrote:
> my plan is as follows
>
> ThreadGroup1 (loop 2000 times)
>  --java request
>  --constant timer 
>
> ThreadGroup2 (loop 1000 times)
>  --java request
>  --constant timer
>
> How do I use properties to enable/disable a particular thread group? or is
> there other mechanism to do so without creating 2 different jmx files or the
> obvious right-click enable/disable?  Another word I want to run the load
> test with varying configuration from the command line 
>
> jmeter -nt loadtest.jmx -q lite.properties   (run thread group A only)
>
> or
>
> jmeter -nt loadtest.jmx -q full.properties   (run a full blown 2 thread
> groups)
>
>
>
>
>   

-- 
Marc Chiarini
CompSci PhD Candidate
Tufts University
Medford, MA 02155
http://www.cs.tufts.edu/~mchiar01


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to