Reputation: 1595
I try to iterate on a .csv
file with a While Controller
. I want only one iteration.
The condition used for stop the loop is the follwing one : ${__javaScript(vars.get("TestCaseName") != "")}
Thread Group config
CSV Data Set Config
However, an infine loop is generated...
Can you help me please?
Thank you !
Upvotes: 0
Views: 1292
Reputation: 168162
Amend the While Controller's condition to use:
__jm__While Controller__idx
variable to stop after the first While Controller's loop
${__groovy(!vars.get("TestCaseName").equals("") && (vars.get("__jm__While Controller__idx") as int) < 1 ,)}
Check out Using the While Controller in JMeter for more hints if needed
Upvotes: 1