Bug 61802 - Loop / ForEach Controller should expose a variable for current iteration
Summary: Loop / ForEach Controller should expose a variable for current iteration
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.3
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-22 21:42 UTC by Philippe Mouawad
Modified: 2017-11-29 07:36 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Mouawad 2017-11-22 21:42:23 UTC
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
Comment 1 Philippe Mouawad 2017-11-28 07:12:44 UTC
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
Comment 2 Philippe Mouawad 2017-11-28 21:41:09 UTC
2 remaining things before closing this Bugzilla:
- Documentation
- JUnit or Spcock Spec for ForEachController
- Possibly refactor LoopController tests which are not very readable
Comment 3 Philippe Mouawad 2017-11-28 21:42:11 UTC
(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 :-)
Comment 4 Philippe Mouawad 2017-11-29 07:36:52 UTC
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