You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm load testing a server in which one user 'unit' involves three separate requests, to create the user entity themselves and two accompanying entities they need to work with in the system.
I'm just trying to get to minimum functionality level, and so I'm running locust on this file and asking it to only spawn 1 unit. When I run though, I get an error akin to:
my-vm/ERROR/stderr: self.on_start()
my-vm/ERROR/stderr: File ".../.../CPLoadTest.py", line 92, in on_start
my-vm/ERROR/stderr: self.setup_account()
my-vm/ERROR/stderr: File ".../.../CPLoadTest.py", line 109, in setup_account
my-vm/ERROR/stderr: self.other_entity_id = res.json()["entity_id"]
my-vm/ERROR/stderr: KeyError: 'entity_id'
my-vm/ERROR/stderr: <Greenlet at 0x7fab35568050: start_locust(<class 'CPLoadTest.AppUserLocust'>)> failed with KeyError
At first look, it would appear that the second request is failing, but when I look at my server logs, NOTHING. That request has never been made! It would appear that locust is not even attempting to make that second request, but instead just skips ahead to that next line and fails.
Is there a one request per function limit in locust? why would this not be running? It makes no sense.
Additionally, I don't see anywhere in the documentation a description of how I can debug this code. How can view the value of variables at different places in the code? Where can I view logging or debug output?
The text was updated successfully, but these errors were encountered:
I'm load testing a server in which one user 'unit' involves three separate requests, to create the user entity themselves and two accompanying entities they need to work with in the system.
my TaskSet goes like this
I'm just trying to get to minimum functionality level, and so I'm running locust on this file and asking it to only spawn 1 unit. When I run though, I get an error akin to:
At first look, it would appear that the second request is failing, but when I look at my server logs, NOTHING. That request has never been made! It would appear that locust is not even attempting to make that second request, but instead just skips ahead to that next line and fails.
Is there a one request per function limit in locust? why would this not be running? It makes no sense.
Additionally, I don't see anywhere in the documentation a description of how I can debug this code. How can view the value of variables at different places in the code? Where can I view logging or debug output?
The text was updated successfully, but these errors were encountered: