On 02/06/2009, AranM <[email protected]> wrote: > > > > sebb-2-2 wrote: > > > > On 02/06/2009, AranM <[email protected]> wrote: > >> > >> Hello, > >> > >> I would like to know if anybody can tell me how I can loop through sets > >> of > >> variables. I want to use a SOAP request sampler several times where I > >> want > >> to change several variables for each iteration. I tried to do this using > >> User Parameters. Unfortunately this means I have to use several threads, > >> which will be executed in parallel. What I want to do is to process them > >> in > >> a fixed order, i.e. user_1 first, then user_2 etc., but I can't work out > >> how > >> to loop through my User Parameters. It just doesn't seem to work. Using > >> a > >> ForEach controller only allows me to change one parameter, so this also > >> doesn't work. > > > > > > > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#CSV_Data_Set_Config > > > > There's a sample script and data files in bin/examples. > > > >> Does anyone know a solution to this problem? Help will be greatly > >> appreciated. > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Looping-thru-sets-of-variables-tp23831308p23831308.html > >> Sent from the JMeter - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > > > Thank you. I was already aware of this option, but it was my last resort > option. I would rather have a solution where I can declare the values I want > to use in the jmeter script and not in a separate file.
... it's difficult offering appropriate advice if the requirements are not stated. > Another option I am considering is using a counter and a (long) list of > UDV's, i.e. A1, A2, A3, A4, B1, B2, B3, B4, etc. which is a bit cumbersome, > but it works. So unless I can find any other solution I will choose either > of the above. You don't say what restrictions if any are placed on the variables. If you just want unique variables, you can use a Counter and include the counter value in the variable name. Also look at: http://jakarta.apache.org/jmeter/usermanual/component_reference.html#User_Parameters > -- > View this message in context: > http://www.nabble.com/Looping-thru-sets-of-variables-tp23831308p23834009.html > > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

