Created attachment 30539 [details] Simple test case Despite what documentation says (http://jmeter.apache.org/usermanual/component_reference.html#ForEach_Controller) ForEach starts looping with the startIndex+1 value and ends with endIndex, i.e. output variable has value of (startIndex + 1) on the first iteration and value of (endIndex) on the last iteration. Having taken a brief look through SVN history I've got an impression that this bug is so long-standing that could be considered "a feature" and it could be wiser to correct documentation instead of possibly breaking behavior of existing tests suites.
Thanks for pointing this. Date: Fri Jul 5 16:08:22 2013 New Revision: 1500053 URL: http://svn.apache.org/r1500053 Log: Bug 55201 - ForEach controller excludes start index and includes end index (clarified documentation) Bugzilla Id: 55201 Modified: jmeter/trunk/xdocs/changes.xml jmeter/trunk/xdocs/usermanual/component_reference.xml
Date: Fri Jul 5 20:42:41 2013 New Revision: 1500127 URL: http://svn.apache.org/r1500127 Log: Bug 55201 - ForEach controller excludes start index and includes end index (clarified documentation) Bugzilla Id: 55201 Modified: jmeter/trunk/xdocs/usermanual/component_reference.xml Date: Fri Jul 5 20:52:48 2013 New Revision: 1500132 URL: http://svn.apache.org/r1500132 Log: Bug 55201 - ForEach controller excludes start index and includes end index (clarified documentation) Bugzilla Id: 55201 Modified: jmeter/trunk/xdocs/usermanual/component_reference.xml
*** Bug 55495 has been marked as a duplicate of this bug. ***
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3156