artillery
artillery copied to clipboard
Scenarios per phase
Is there any way to define scenarios per phase? Say, I need to perform requests to endpoint X for 20 seconds, then stop and start calling endpoint Y. Can't find anything related in the docs.
There's no way to associate a scenario definition with a specific phase right now, but you may be able to do it with custom logic in a beforeScenario
function or by running two separate Artillery tests -- it depends on what you're trying to do exactly.
Well, that's unfortunate. It's definitely possible to work around either using beforeScenario
or by managin Artillefy from an external script, but either solution is not too clean. This issue should be considered feature request then.
Agree with this strongly! Trying to replicate some user behavior and being able to plug in different scenarios per phase would be killer.