Doesn't Artillery run scenarios in order? #2762
RemiBardon
started this conversation in
Artillery
Replies: 1 comment 3 replies
-
Hey @RemiBardon 👋
Artillery chooses one scenario to run randomly based on their weight (to simulate real users arriving at your application and doing different things): https://www.artillery.io/docs/reference/test-script#scenario-weights If you're interested in running something once in every VU, I'd recommend using |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running functional tests with
--solo
, and because of #2756, I moved mybefore
scenarios inside of thescenarios
section. However, when I runartillery
, the first "Before" scenario isn't executed as I would expect it to be. I'm pretty sure it's the expected behavior (and that's why thebefore
andafter
sections exist, but I didn't find an explicit explanation in the Docs.So my question is simple: Does Artillery run all scenarios in order or not?
If not, I have a subsequent question: For each VU, does Artillery choose one scenario to run or does it run all of them in random order?
Beta Was this translation helpful? Give feedback.
All reactions