Thanks the counter worked fine and I build the variable appending the counter value (as I needed to store several values).
-----Message d'origine----- De : Hari Krishna Dara [mailto:[EMAIL PROTECTED] Envoyé : mercredi 19 septembre 2007 19:51 À : JMeter Users List Objet : Re: Finding the current loop number 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. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

