Is there some method (ideally for a User
class) or event or other way in Locust to execute some setup code before each task?
What I have looked into:
- there are some useful events, unfortunately none like
on_task_start
- there are some useful methods like
test_start
, but unfortunately none liketask_start
- I could use the
wait_time()
method on aUser
class, but that is an ugly work around, and the method is not called before the first task of eachUser
instance.