You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by nlunebur <nl...@lisasoft.com> on 2004/06/22 07:03:19 UTC

pls help! cnt seem to retrieve a reference name :(((

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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: pls help! cnt seem to retrieve a reference name :(((

Posted by Michael Stover <ms...@apache.org>.
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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
-- 
Michael Stover <ms...@apache.org>
Apache Software Foundation


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