You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Sonam Chauhan <so...@ce.com.au> on 2003/12/31 03:34:33 UTC

Execute n threads

Hello - 

In the 'Thread Group' element, I want to set 'Number of Threads' and 'Loop
Count' to *either* set of properties below. This is so I can use the same
JMX for both, load and integration testing.
----------------------------------------
# For integration testing
ce.b2b.integration.threads=1
ce.b2b.integration.iterations=1

# For load testing
ce.b2b.load.threads=100
ce.b2b.load.iterations=10
----------------------------------------

I was thinking of using a 'If' Logic controller can initialize internal
JMeter variables. However, it seems impossible to insert the 'If' Logic
controller *above* the Thread Group.  

Short of rewriting the properties file at runtime, is there a better
solution?

With regards,
Sonam Chauhan
-- 
Corporate Express Australia Ltd.
Phone: +61-2-9335-0725, Fax: 9335-0753, Email: sonamc@ce.com.au
 


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


Re: Execute n threads

Posted by Sebastian Bazley <Se...@london.sema.slb.com>.
See the JMeterFAQ - http://nagoya.apache.org/wiki/apachewiki.cgi?JMeterFAQ

About half-way down, you will find the following:
Question:How do I pass parameters into my Test scripts? I want to be able to use the same script to test with different numbers of
threads and loops, and I don't want to have to change the script each time.

S.
----- Original Message ----- 
From: "Sonam Chauhan" <so...@ce.com.au>
To: "'JMeter Users List'" <jm...@jakarta.apache.org>
Sent: Wednesday, December 31, 2003 2:34 AM
Subject: Execute n threads


Hello -

In the 'Thread Group' element, I want to set 'Number of Threads' and 'Loop
Count' to *either* set of properties below. This is so I can use the same
JMX for both, load and integration testing.
----------------------------------------
# For integration testing
ce.b2b.integration.threads=1
ce.b2b.integration.iterations=1

# For load testing
ce.b2b.load.threads=100
ce.b2b.load.iterations=10
----------------------------------------

I was thinking of using a 'If' Logic controller can initialize internal
JMeter variables. However, it seems impossible to insert the 'If' Logic
controller *above* the Thread Group.

Short of rewriting the properties file at runtime, is there a better
solution?

With regards,
Sonam Chauhan
-- 
Corporate Express Australia Ltd.
Phone: +61-2-9335-0725, Fax: 9335-0753, Email: sonamc@ce.com.au



---------------------------------------------------------------------
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