Counter config under Random/Interleave controller
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
**Andrey Pokhilko** ([Bug 58014](https://bz.apache.org/bugzilla//show_bug.cgi?id=58014&redirect=false)):
I found strange issue with using Counter element under Random or Interleave controller. The strangeness is that it can be fixed just by wrapping the sampler into Simple Controller.
See the attached test plan, it contains 2 thread groups. Fail thread group shows that counter variable produces not sequential values, although it is attached to a sampler. Surprisingly, Pass thread group shows that just wrapping the sampler into Simple controller do produce desired sequential integer values.
I failed to find obvious reasons for such behavior while reading through source code. I expect Counter to produce sequential values even without being wrapped into Simple Controller, at it feels natural by attaching it to particular scope.
Created attachment [Counter-and-Controllers.jmx](https://apache.github.io/jmeter-bugzilla-attachments/14/58014/32800/Counter-and-Controllers.jmx): Reproduction test plan
Severity: normal
OS: All
Contributor guide
Assessment
This issue has not been assessed yet.