0
votes

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

  • Number of Threads : 1
  • Ramp-Up Period :
  • Loop count : 1

CSV Data Set Config

  • Variable Names : TestCaseName
  • Recycle on EOF : False
  • Stop thread on EOF : True
  • Sharing mode : Current thread

However, an infine loop is generated...

Can you help me please?

Thank you !

1

1 Answers

1
votes
  1. Put your CSV Data Set Config inside the While Controller
  2. Amend the While Controller's condition to use:

    enter image description here

Check out Using the While Controller in JMeter for more hints if needed