Reputation: 789
I have a Test Plan like below:
Test Plan
SQL 1
Save to file A
Outer While loop
CSV= file A
SQL 2 => many rows
Save to file B
Inner While loop <--- executes only once
CSV = file B, recycle at EOF = false, stop thread at EOF = false
JSR223 sampler
My Inner While loop reads all the lines and ends when reaches EOF. Then control goes back to Outer WHILE loop, executes the SQL 2, but when comes back to Inner loop, counter is set to EOF and hence never executes the INNER Loop's samplers. What can I do to use the Inner Loop many times?
Upvotes: 0
Views: 370
Reputation: 168132
Not seeing your While Controller's condition and associated JMeter Functions or Variables names and values it is hard to say exactly what's going on, my expectation is that the While Controller's condition becomes false
somewhere in the Outer Loop and you don't reset it to true
in the Outer Loop.
Something like:
A
variable to true
"${A}" == "true"
A
to false
You can inspect JMeter Variables values at any stage of the test using Debug Sample and View Results Tree listener combination, see How to Debug your Apache JMeter Script article to learn more about JMeter tests troubleshooting techniques.
Upvotes: 1