jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Byron Foster" <by...@base2.cc>
Subject Re: How to Use Counter
Date Thu, 12 Dec 2002 23:09:39 GMT
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:   <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jmeter-user-help@jakarta.apache.org>


Mime
View raw message