Provide a way to stop locust test when there are problems during on_test_start() event #2875
Closed
sfc-gh-tlasica
started this conversation in
Ideas
Replies: 1 comment 10 replies
-
You should be able to call |
Beta Was this translation helpful? Give feedback.
10 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.
-
Context:
Before starting benchmark I would like to prepare some data e.g. setup in the database some unique table with data
If this setup fails (for any reason) I do not want to continue, I do not even want to start users
I have used event
on_test_start()
for this setup (maybe incorrectly?)Problem:
I do not see how to achieve that.
Raising
LocustError()
fromon_test_start()
does not help - seems the exception is swallowed.Idea
Maybe this event should be able to return boolean to denote if the test should continue?
Beta Was this translation helpful? Give feedback.
All reactions