apache / apache/jmeter

Flow Control Action - Break current loop issues

Open
#5,417 2 comments 0 reactions 0 assignees View on GitHub
enhancement need info os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**eR@SeR** ([Bug 64820](https://bz.apache.org/bugzilla//show_bug.cgi?id=64820&redirect=false)):
Hello,

I noticed that Flow Control Action when Break current loop is checked has unexpected behavior:

1. When used in Loop, While or ForEach controllers which parent is Transaction controller, loop is properly stopped but results are doubled in Listeners. If Generate parent sample is checked or unchecked in Transaction controller, behavior is the same. Runtime controller might be affected too, but cannot be reproduced because of issue under point 2.

2. When used in Runtime controller only, Break current loop actually stops current thread. Last Dummy Sampler in TG2 is not executed.

Check provided jmx file for more info. TG1 point 1 and TG2 point 2.

Jmeter 5.3
Microsoft Windows 10 Enterprise 64-bit
java version "14.0.1" 2020-04-14

Note: There might be more issues for flow control action when Break current loop is used, so if you have time please investigate. Thank you.

Created attachment [TranContrAndBreak.jmx](https://apache.github.io/jmeter-bugzilla-attachments/20/64820/37505/TranContrAndBreak.jmx): jmx file

OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.