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
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
2 remaining things before closing this Bugzilla: - Documentation - JUnit or Spcock Spec for ForEachController - Possibly refactor LoopController tests which are not very readable
(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 :-)
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
Fixed in 4.0. Create Bug 63165 for remaining work.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4606