| || |
For in the Jmeter
I have a script that run with 200 threads, but the each iteration is need exchange the user and password. Well, did a csv file that is read the each iteration. Was good, but wanted to do within the code with a for or while. This is possible, how do?
The best option is to use CSV Data Set Config with Loop Controller. You can manipulate loop exit criteria by "Recycle on EOF" and "Stop thread on EOF" CSV data set config parameters.
JMeter doesn't provide "FOR" cycle logic controller.
For Each - iterates through variables. i.e. if you have variables already defined like
Then it makes sense to use it.
While controller uses conditional logic. I.e. you have condition variable called "continue" with the value of "true" which is set to false somewhere in the loop.
Both While and Foreach don't seem to be matching your use case.