You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Kenny Smith <ks...@appliedsemantics.com> on 2002/12/10 18:00:36 UTC
How to Use Counter
Hello all,
I know this is a simple question, but I'm having trouble getting the Counter
to work.
I want to send x number of requests to fetch x number of files that have
increasing numbers in the filenames. I've added a counter to my thread group
with a reference name of myCounter and I've set this in my http request
settings:
http://192.168.100.100/misc/test_${myCounter}.html
However, when I run the test it makes a request for
http://192.168.100.100/misc/test_1.html over and over again. The counter
never increments.
Am I putting it in the wrong place, have I configured it wrong in some way?
The documenation on this is really thin and I haven't been able to find any
examples on the web.
Thanks
Kenny Smith
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to Use Counter
Posted by Byron Foster <by...@base2.cc>.
I've recently had the same problem and after some investigation I believe
the Counter Config is broken, or at least does not work the way we think.
The counter will increment with every new thread (in non-peruser mode),
but it will not increment with every loop.
What will probably work in your case is the counter function, try the
following and remove the CounterConfig element:
http://192.168.100.100/misc/test_${__counter(FALSE,count)}.html
docs at:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html
Good Luck,
Byron
> Hello all,
>
> I know this is a simple question, but I'm having trouble getting the
> Counter to work.
>
> I want to send x number of requests to fetch x number of files that have
> increasing numbers in the filenames. I've added a counter to my thread
> group with a reference name of myCounter and I've set this in my http
> request settings:
>
> http://192.168.100.100/misc/test_${myCounter}.html
>
> However, when I run the test it makes a request for
>
> http://192.168.100.100/misc/test_1.html over and over again. The counter
> never increments.
>
> Am I putting it in the wrong place, have I configured it wrong in some
> way? The documenation on this is really thin and I haven't been able to
> find any examples on the web.
>
> Thanks
> Kenny Smith
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to Use Counter
Posted by Byron Foster <by...@base2.cc>.
Could you explain interation through the Test Plan? From my understanding
the highest level of iteration would be a 'Thread Group'. Given the below
configuration what would I expect the ${count} values to be:
Root
TestPlan
Thread Group (Loop count:5 Number of threads:5)
Counter (start:0 increment:1 end:100 name:count user:no)
Http Page1 (reference to ${count})
Http Page2 ...
Http Page3 ...
Does the behavior change if Counter is moved above Thread Group? What I
would like is in the above example for ${count} to iterate from 0-24 in a
global fashion such that each thread and loop has a unique ${count} value.
is this possible with Counter?
I have never been able to get the Counter Config to iterate a count when
looping even after trying different configurations. I am curious what I
am doing wrong. I'm using JMeter out of CVS.
Thanks,
Byron
Michael Stover wrote:
> I have to say, it worked for me just now. The counter will increment
> with each iteration through the test plan. If you use a Loop
> Controller within your test plan and set it to 'forever', then it
> wouldn't work - because as I said, the counter only increments with
> each iteration through the whole test plan.
>
> -Mike
>
> On 10 Dec 2002 at 9:00, Kenny Smith wrote:
>
>> Hello all,
>>
>> I know this is a simple question, but I'm having trouble getting the
>> Counter to work.
>>
>> I want to send x number of requests to fetch x number of files that
>> have increasing numbers in the filenames. I've added a counter to my
>> thread group with a reference name of myCounter and I've set this in
>> my http request settings:
>>
>> http://192.168.100.100/misc/test_${myCounter}.html
>>
>> However, when I run the test it makes a request for
>>
>> http://192.168.100.100/misc/test_1.html over and over again. The
>> counter never increments.
>>
>> Am I putting it in the wrong place, have I configured it wrong in some
>> way? The documenation on this is really thin and I haven't been able
>> to find any examples on the web.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to Use Counter
Posted by Mike Stover <ms...@apache.org>.
I have to say, it worked for me just now. The counter will increment with each
iteration through the test plan. If you use a Loop Controller within your test plan
and set it to 'forever', then it wouldn't work - because as I said, the counter only
increments with each iteration through the whole test plan.
-Mike
On 10 Dec 2002 at 9:00, Kenny Smith wrote:
> Hello all,
>
> I know this is a simple question, but I'm having trouble getting the Counter
> to work.
>
> I want to send x number of requests to fetch x number of files that have
> increasing numbers in the filenames. I've added a counter to my thread group
> with a reference name of myCounter and I've set this in my http request
> settings:
>
> http://192.168.100.100/misc/test_${myCounter}.html
>
> However, when I run the test it makes a request for
>
> http://192.168.100.100/misc/test_1.html over and over again. The counter
> never increments.
>
> Am I putting it in the wrong place, have I configured it wrong in some way?
> The documenation on this is really thin and I haven't been able to find any
> examples on the web.
>
> Thanks
> Kenny Smith
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>