I have tried this against both 2.3.2 and trunk. I have attached a minimal
example in which this problem occurs.

I've discovered that if I add an additional file to the sampler, then the
counter will work right on the second file, but is frozen on the initial
value for the first file. Perhaps this bug popped up after the HTTPFileArgs
feature had been introduced?

-Nadav

On Thu, Aug 21, 2008 at 8:35 PM, Ryan Miling <[EMAIL PROTECTED]> wrote:

> I cannot reproduce this error. I set-up my test plan exactly like yours
> and was able to send the files
> 'myfile0.txt','myfile1.txt',...,'myfile9.txt' along with the HTTP
> Request. Like you, I had done this...
>
> + Thread Group
> ++ Loop Controller
> +++ Counter
> +++ HTTP Request
> +++ Debug Sampler
> ++ View Results Tree
>
> ...except I threw on a Debug Sampler and View Results Tree to see what
> was going on. You do have the most recent version of JMeter, correct?
>
>
> > -----Original Message-----
> > From: Nadav Samet [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 21, 2008 3:24 PM
> > To: [email protected]
> > Subject: Counter within a loop
> >
> > Hi there,
> >
> > I am trying to create a loop that each iteration would initiate a
> request.
> > One field in the request (the file to send) varies with each
> iteration.
> >
> > This is how I set it up:
> >
> > + ThreadGroup
> > ++ Loop controller      (Loop Count = 10)
> > +++ Counter  (Start=0, increment=1, max=100000, reference name=index)
> > +++ Request   (Send files with the request: myfile${index}).txt)
> >
> > It turns out that it does loop 10 times, but it sends myfile0.txt on
> all
> > iterations, instead of the different 10 files I've prepared. Does it
> do
> > the
> > string interpolation on the file name too early? What's the right way
> to
> > do
> > it?
> >
> > --
> > Thanks,
> > Nadav
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to