I have three tests which I want to run sequentially, after the one is completely done. I am using scenarios and I got it working, but as of now my tests are being run simultaneously.
I have been looking for quite a while now, without success. I get the feeling that I am completely overlooking the answer for this.
How can I run scenarios sequentially if I don’t want to configure a duration, but execute a fixed number of iterations for each scenario and then run the next one?
@jacob, unfortunately there’s no way to do that yet. We plan to eventually implement a startAfter property to allow you to chain scenarios like that, as described in Test suites / execute multiple scripts with k6 · Issue #1342 · grafana/k6 · GitHub. However, as you can see from the comments I made there regarding the implementation complexity, I can’t promise it will be any time soon.
For now, the best you can do is set a good approximate maxDuration of your iteration-based scenarios and calculating their startTime based on the maxDuration + gracefulStop of all preceding scenarios. Or, do things the old way, as separate k6 scripts you execute sequentially with a bash script or something like that.