vlsi commented on code in PR #6370: URL: https://github.com/apache/jmeter/pull/6370#discussion_r1858597236
########## 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: > Do you mean you want me to add a unit test about the change? Yeah. We need to add tests to prevent accidental regressions. Here's a sample: https://github.com/apache/jmeter/blob/c846e66e92d0ed4428e5a0d7dd9c0bc0570c5def/src/components/src/test/kotlin/org/apache/jmeter/threads/openmodel/OpenModelThreadGroupConfigElementTest.kt#L50 -- 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