jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Combining Counter and While Controller
Date Tue, 20 Mar 2012 10:24:31 GMT
On 20 March 2012 04:19, Pulkit Singhal <pulkitsinghal@gmail.com> wrote:
> Changing the condition from:
>
> ${__javaScript(${upcCounter}<=${__P(upcTotal)})}
>
> to something like:
>
> ${__javaScript(${upcCounter}<=10)}
>
> helps narrow down the problem to the following chunk of code:
>
> ${__P(upcTotal)}
>
> So are JMeter Properties not evaluate-able in logic controllers?

It's a function call (that happens to read a property), such calls are
valid wherever a variable reference is valid.

> On Mon, Mar 19, 2012 at 12:10 PM, Pulkit Singhal <pulkitsinghal@gmail.com>wrote:
>
>> 1) The data that I need to access is present in JMeterProperties (comes
>> from a different thread group - consecutive excution):
>>
>> upcArray_1 = 012934023423
>> ...
>> upcArray_10 = 342034234233
>>
>> Therefore the foreach controller does not work for me as it tries to find
>> the prefix (upcArray) in the JMeterVariables which is not the right place
>> to look for it.
>>
>> 2) So I am attempting to add a counter as the child of the while
>> controller to let me loop through the data in the JMeterProperties:
>>
>> WHILE CONTROLLER
>> Condition: ${__javaScript(${upcCounter}<=${__P(upcTotal)})}
>>
>> CHILD COUNTER
>> Start: 1
>> Increment: 1
>> Reference Name: upcCounter
>> Track Counter Independently for each user - YES
>>
>> 3) But it counts 1 then 2 and then its stops! It doesn't go all the way up
>> to 10 ... what am I doing wrong here?
>>

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


Mime
View raw message