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 2017/11/22 21:42:23 UTC

[Bug 61802] New: Loop / ForEach Controller should expose a variable for current iteration

https://bz.apache.org/bugzilla/show_bug.cgi?id=61802

            Bug ID: 61802
           Summary: Loop / ForEach Controller should expose a variable for
                    current iteration
           Product: JMeter
           Version: 3.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: p.mouawad@ubik-ingenierie.com
  Target Milestone: ---

When I introduce those components, newbies don't understand why we don't expose
OOTB this information which is very useful in many cases. Workaround is to use
a Counter but why ?

I propose to name variable :
- "_jm_<controller name>_it"


If I missed an element that should also do, please update.
Thanks

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

[Bug 61802] Loop / ForEach Controller should expose a variable for current iteration

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Tue Nov 28 07:11:35 2017
New Revision: 1816519

URL: http://svn.apache.org/viewvc?rev=1816519&view=rev
Log:
Bug 61802 - Loop / ForEach Controller should expose a variable for current
iteration
Bugzilla Id: 61802

Modified:
   
jmeter/trunk/src/components/org/apache/jmeter/control/ForeachController.java
    jmeter/trunk/src/core/org/apache/jmeter/control/LoopController.java
    jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
    jmeter/trunk/test/src/org/apache/jmeter/control/TestLoopController.java
    jmeter/trunk/xdocs/changes.xml

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

[Bug 61802] Loop / ForEach Controller should expose a variable for current iteration

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

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

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

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Fixed in 4.0.
Create Bug 63165 for remaining work.

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

[Bug 61802] Loop / ForEach Controller should expose a variable for current iteration

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

--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Wed Nov 29 07:36:35 2017
New Revision: 1816602

URL: http://svn.apache.org/viewvc?rev=1816602&view=rev
Log:
Bug 61802 - Loop / ForEach Controller should expose a variable for current
iteration
Document exposed variable
Bugzilla Id: 61802

Modified:
    jmeter/trunk/xdocs/usermanual/component_reference.xml

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

[Bug 61802] Loop / ForEach Controller should expose a variable for current iteration

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |63165


Referenced Bugs:

https://bz.apache.org/bugzilla/show_bug.cgi?id=63165
[Bug 63165] Improve testing of Bug 61802
-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61802] Loop / ForEach Controller should expose a variable for current iteration

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

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
(In reply to Philippe Mouawad from comment #2)
> 2 remaining things before closing this Bugzilla:
> - Documentation
> - JUnit or Spcock Spec for ForEachController
> - Possibly refactor LoopController tests which are not very readable

PRs welcome :-)

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

[Bug 61802] Loop / ForEach Controller should expose a variable for current iteration

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

--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
2 remaining things before closing this Bugzilla:
- Documentation
- JUnit or Spcock Spec for ForEachController
- Possibly refactor LoopController tests which are not very readable

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