vlsi commented on code in PR #6370: URL: https://github.com/apache/jmeter/pull/6370#discussion_r1857959617
########## src/components/src/main/java/org/apache/jmeter/control/ForeachController.java: ########## @@ -198,6 +198,9 @@ private boolean endOfArguments() { // Prevent entry if nothing to do @Override public Sampler next() { + if (loopCount < getStartIndex()) { + loopCount = getStartIndex(); + } Review Comment: Could you add a test case to cover the change? It looks suspicious to call `getStartIndex()` twice as it might produce different results on every call. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org