apache / apache/jmeter

Counter config under Random/Interleave controller

Open
#3,609 1 comment 0 reactions 0 assignees View on GitHub
os: All P2
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

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.