Created attachment 31394 [details] Demonstration of bug and workaround I use a Jmeter variable for the value of Loop Count field. Loop Controller works correctly until first zero-value iteration counter. When meeting one, Loop Controller does nothin (correct) but after that it becomes broken in current thread group till the end of test: even when Loop Counter becomes non-zero Loop Controller does nothing (incorrect). Run attached test plan and inspect Results Tree. Play with "if (iterCounter == 3)" condition and change "vars.put("num_loops",Integer.toString(0));" to any non-zero value and see that it stops breaking. Bug appears in versions 2.10 and 2.11, and does not appear in version 2.9. WORKAROUND: Put Loop Controller inside If Controller to avoid passing zero values to Loop Counter (this shown in WORKAROUND thread group in attached test plan).
Bug is also reproduced in nightly build r1578205.
Got the information that workaround does not work at some cases.
Note issue was introduced by fix to 54467
Date: Tue Mar 18 23:17:14 2014 New Revision: 1579084 URL: http://svn.apache.org/r1579084 Log: Bug 56276 - Loop controller becomes broken once loop count evaluates to zero Bugzilla Id: 56276 Modified: jmeter/trunk/src/core/org/apache/jmeter/control/LoopController.java jmeter/trunk/xdocs/changes.xml
Verified in nightly build r1579114: FIXED.
Thanks for report and tests. Date: Sat Mar 22 21:21:44 2014 New Revision: 1580330 URL: http://svn.apache.org/r1580330 Log: update thanks section Modified: jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3344