Agreed. Sorry, I expressed myself badly - I was expanding on:

"Only user-defined variables from the TestPlan object are available at that
point."

rather than addressing the original problem.

As you say, that won't help here, as the thread count cannot be changed once
JMeter has created the threads.

S.
-----Original Message-----
From: Michael Stover [mailto:[EMAIL PROTECTED]
Sent: 22 June 2004 17:13
To: JMeter Users List
Subject: RE: pls help! cnt seem to retrieve a reference name :(((


But he wants to dynamically change the number of threads in mid run
using a counter.  It's not going to work.

-Mike

On Tue, 2004-06-22 at 09:33, BAZLEY, Sebastian wrote:
> The property functions should work, so one can do:
> 
>       jmeter ... -Jthreads=123
> 
> And use:
> 
>       ${__P(threads)}
> 
> in the Thread Group element
> 
> __P() defaults to the value 1 if the property is not defined.
> 
> S.
> -----Original Message-----
> From: Michael Stover [mailto:[EMAIL PROTECTED]
> Sent: 22 June 2004 13:59
> To: JMeter Users List
> Subject: Re: pls help! cnt seem to retrieve a reference name :(((
> 
> 
> You'll never be able to use a counter element value in a ThreadGroup
> element.  ThreadGroups are initialized once at the start of the test. 
> Only user-defined variables from the TestPlan object are available at
> that point.
> 
> -Mike
> 
> On Tue, 2004-06-22 at 01:03, nlunebur wrote:
> > can someone pls help me with this?
> > 
> > i have a pre-processor Counter element with a reference name
> 'threadcount',
> > 
> > when i try to access it via a javaScript or intSum function like 
> > ${threadcount}, it doesn't work!
> > i have also tried just $threadcount
> > 
> > eg.
> > 
> > ${__intSum(${threadcount},2,)}
> > 
> > the javaScript and intSum functions work but not if i have the 
> > threadcount variable.
> > 
> > can someone pls help? i've been trying to fix this for hours!!!
> > 
> > thanku!
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Michael Stover <[EMAIL PROTECTED]>
Apache Software Foundation


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


___________________________________________________________________________

This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail in
error, please notify the sender immediately and destroy it. As its integrity
cannot be secured on the Internet, the Atos Origin group liability cannot be
triggered for the message content. Although the sender endeavours to maintain
a computer virus-free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted. 
___________________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to