https://issues.apache.org/bugzilla/show_bug.cgi?id=56276
Bug ID: 56276
Summary: Loop controller becomes broken after zero-valued loop
counter
Product: JMeter
Version: 2.11
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Created attachment 31394
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31394&action=edit
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).
--
You are receiving this mail because:
You are the assignee for the bug.