Max duration for a scenario

I see there’s a way to add maxDuration to a simulation (i.e setUp(…).maxDuration(…) )

However is there a way to set a max duration for a scenario?

Essentially I want to chain (sequentially) and run multiple scenarios

Hi,

Perhaps are you looking for andThen?

See official documentation for sequential scenarios.

Cheers!

Thanks.
Yes already checked that out. I guess what I’m looking for is something like

setUp (
scenario1.maxDuration(10.minutes).andThen(
scenario2.maxDuration(20.minutes)
)
)

Hey, thanks for this.
Yes already looked at that. What I’m looking for is something like

setUp(
scnario1.maxDuration(5.minutes).andThen(
scenario2.maxDuration(15.minutes).andThen(…)
)
)

Thanks.

I went through the docs. I think I’m looking for something like

setUp(
scenario1.maxDuration(5.minutes).andThen(
scenario2.maxDuration(10.minutes).andThen(…)
)
)