Replies: 2 comments 3 replies
-
hi @MoeLa👋 have you tried using the https://artillery.io/docs/guides/guides/test-script-reference.html#Options One possible snag is that once all rows have been used, the next virtual user would wrap around and start from the beginning again. That wouldn't be a problem though if you have exactly 2 virtual users and 2 rows, which may be the case? lmk if that would work, there may be other solutions if not |
Beta Was this translation helpful? Give feedback.
-
To answer my own question: config:
phases:
- duration: 1
arrivalCount: 1
maxVusers: 1 starts one virtual user, that finishes as soon as his scenario has been completed. Instead of using
is used to iterate. If you need more looping inside that loop, you need to use a function step in a flow, like
to write the |
Beta Was this translation helpful? Give feedback.
-
My
target
is used less frequently, so a "normal" performance test with a couple of dozens of requests per seconds is not reasonable. It usually only serves one request user at any given time, but that request may take a couple of milli seconds or several minutes.I defined a scenario, where the "payload" was defined via an environment variable. Artillery was then executed for each value., like:
I'd like to store my variables in a payload.csv (with the rows 'foo' and 'bar'), so the pseudo code from above can be reduced to
artillery run myscenario.yaml
. The scenario for 'foo' and 'bar shall be executed sequentially and exactly once. The duration for 'foo' and 'bar' may differ extremly.Is there a way to set
config.phases
andconfig.http.pool
(and problably further parameters) to achieve my desired behaviour?Beta Was this translation helpful? Give feedback.
All reactions