abstracta/jmeter-java-dsl

Support both a number of iterations and Duration

Melanie-RK opened this issue · 3 comments

In JMeter I can set both a number of iterations and specify a thread lifetime (Duration) for a ThreadGroup, however, the DSL currently does not support this.

Use case:

I specify the thread lifetime to make sure a test does not exceed a certain duration

Screenshot:
issue_screenshot

Thank you for asking for this!

This is an interesting use case. Anyone else with the same need?

We may implement something like:

threadGroup()
 .rampTo(1, Duration.ofSeconds(1))
 .holdIterating(30)
 .upTo(Duration.ofMinutes(200))

Any other ideas or comments?

That looks good to me, very easy to see at a glance what it does

This has been added on latest release