Yep. Sorry I wasn't being very clear there was I?
So set up the user counter as I suggested, and then
vars.put("token_${userCounter}", "${newToken});
Then you can iterate through the token array with a foreach loop! :-)
If you need additional information you can make more arrays too. Just do:
kk4k4k4k55
I need to be able to store them in one variable such that when I feed the
variable to the for-each loop it can reference each token individually.
--
View this message in context:
http://jmeter.512774.n5.nabble.com/Storing-values-in-an-Array-tp4747712p4747928.html
Sent from the J
I usually end up making a user defined variable userCounter = 1 and then
increment it as part of a BSF sampler inside the loop;
int counter = ${userCounter}; // or
Integer.parseInt(vars.get("userCounter"));
counter = counter + 1;
vars.put("userCounter", Integer.toString(counter));
You could proba
4.n5.nabble.com/Storing-values-in-an-Array-tp4747712p4747712.html
Sent from the JMeter - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail
4 matches
Mail list logo