Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

JMeter For-Each Controller – Seems to Run Only First Several Iterations, Then Stops

Here are UDVs, which I use as loop variables:
Loop Variables

Here is the For-Each definition.
for-each panel

When I run this from starting = 1 to ending = 11, it only runs 1, 2, 3, 4.
Then it stops.
Here is loop #4.
Working HTTP request

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

This shows that variable status_1, status_2, … , status_11 are all defined.
JMeter debug output, showing all variables

The question is: why is status_5 and onwards not running?

>Solution :

Either you made a typo/copy paste issue and one of the variables have an extra non-printable character like whitespace or line break

Or there is something else preventing the test from execution like CSV Data Set Config which has run out of the values or error has occurred and Thread Group is configured to stop in that case of whatever.

Check jmeter.log file for any suspicious entries, if nothing unusual is there – increase JMeter logging verbosity and check it again.

Under normal circumstances the ForEach Controller works as expected:

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading