You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2014/03/17 15:20:49 UTC

[Bug 56276] New: Loop controller becomes broken after zero-valued loop counter

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: issues@jmeter.apache.org
          Reporter: greatvovan@gmail.com

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.

[Bug 56276] Loop controller becomes broken once loop count evaluates to zero

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56276

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Loop controller becomes     |Loop controller becomes
                   |broken after zero-valued    |broken once loop count
                   |loop counter                |evaluates to zero

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56276] Loop controller becomes broken once loop count evaluates to zero

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56276

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56276] Loop controller becomes broken after zero-valued loop counter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56276

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|PC                          |All
            Version|2.11                        |2.10

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56276] Loop controller becomes broken once loop count evaluates to zero

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56276

--- Comment #5 from Vladimir Ryabtsev <gr...@gmail.com> ---
Verified in nightly build r1579114: FIXED.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56276] Loop controller becomes broken after zero-valued loop counter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56276

--- Comment #2 from Vladimir Ryabtsev <gr...@gmail.com> ---
Got the information that workaround does not work at some cases.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56276] Loop controller becomes broken once loop count evaluates to zero

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56276

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Note issue was introduced by fix to 54467

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56276] Loop controller becomes broken after zero-valued loop counter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56276

Vladimir Ryabtsev <gr...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Vladimir Ryabtsev <gr...@gmail.com> ---
Bug is also reproduced in nightly build r1578205.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56276] Loop controller becomes broken after zero-valued loop counter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56276

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #31394|text/plain                  |text/xml
          mime type|                            |
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56276] Loop controller becomes broken once loop count evaluates to zero

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56276

--- Comment #6 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.