Closed toddmichael closed 5 years ago
Running into this as well. I have no idea how to Locust though. I was able to get a bit further along by calling the setup method to load the testdata.json. I'm not sure how this is supposed to be properly handled.
--- a/locusts/__init__.py 2018-08-22 18:23:25.000000000 -0700
+++ b/locusts/__init__.py 2018-08-22 18:13:02.000000000 -0700
@@ -13,6 +13,7 @@
def __init__(self):
super().__init__()
self.client = VaultSession(base_url=self.host)
+ self.setup()
def setup(self):
with open('testdata.json', 'r') as f:
Thanks for reporting the issue. It looks like support for the setup
and teardown
methods didn't make it into Locust until version 0.9.0. I was building Locust from source, that's why it worked for me.
Upgrade Locust with pip install --upgrade Locust==0.9.0
and it should work. I will update the requirements.txt
too.
Hello, appreciate this project. Unfortunately, I'm struggling to get it to work.
Environment
Prepare
Prepare works as expected
and
testdata.json
looks right:Locust Run
Unfortunately when I run
locust
I get this:Inspecting
self.locust.testdata
from within the function shows:What am I missing? Thanks.