If you know the count in advance, why not use a Loop Controller with a
Counter as a child? If ${x} is the count, then Loop Controller will have a
count of ${x} and the Counter will have the appropriate range, e.g., from 1
to ${x} (the max doesn't really matter, just make sure it will have enough
range, in case you don't Start with 0 or 1). The Reference Name of the
Counter then will have the current loop count at anytime and you can use
that to form variable names.

-- Hari

On 9/19/07, Renou, Stephane <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I am running a loop early in my test plan and I need to store the
> different data of each time I go thru the loop so that later on in the
> test plan where I run another time the same loop I can reuse the data
> stored previously.
>
> Test plan is so:
>
> Loop x times
>
> Perform some stuff
>
> Loop x times
>
>
>
> I was thinking of storing my data as vars.put("data1") vars.put("data2")
> etc but I could not find how to know which iteration of the loop I am
> currently running.
>
>
>
> Is this information available in the pre defined variables somewhere?
>
>
>
> Thank you.
>
>

Reply via email to