Replies: 1 comment 2 replies
-
Hi @A6196511 👋 - you could use a before section, with a function step : config:
target: http://target
processor: './processor.js'
before:
flow:
- function: 'populateDb'
scenarios:
- flow:
... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, for my load test script I need to clean DB and then fill it in by test data. The logic for that is contained in the separate JS file. However, in the guide https://www.artillery.io/docs/guides/guides/http-reference#loading-custom-js-code I see that it is only possible to load the custom JS code via
beforeRequest
orbeforeScenario
, which is not acceptable for my current case. Is there a way to load the custom JS code only once, before all scenarios?Regards, Alex
Beta Was this translation helpful? Give feedback.
All reactions