apache / apache/jmeter

Interleave controller inside if controller does not interleave samplers equally

Open
#5,554 0 comments 0 reactions 0 assignees View on GitHub
P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**mserdur** ([Bug 65434](https://bz.apache.org/bugzilla//show_bug.cgi?id=65434&redirect=false)):
When an interleave controller is inside an if controller interleave is not invoking it's samplers equal times but the first one is called about twice as much as the second one.

Please see a sample project attached

Created attachment [Interleave-inside-if-bug.jmx](https://apache.github.io/jmeter-bugzilla-attachments/34/65434/37945/Interleave-inside-if-bug.jmx): sample project reproducing the issue
Interleave-inside-if-bug.jmx

````xml




false
true
false







continue

false
-1

1
1
false


true



100



groovy


true
import java.util.*;
vars.put("condition", ""+new Random().nextBoolean())




${condition}
false
true



1
false



groovy


true
//



groovy


true
//






false

saveConfig


true
true
true
true
true
true
true
true
false
true
true
false
false
false
true
false
false
false
true
0
true
true
true
true
true
true






````

Severity: normal
OS:

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.