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 followed the quick start guide and failed quite in the beginning:
This is my locustfile.py
from locust import HttpLocust, TaskSet
def status(l):
l.client.get("/status")
class UserBehavior(TaskSet):
tasks = {"index":2, "profile":1}
def on_start(self):
status(self)
class WebsiteUser(HttpLocust):
task_set = UserBehavior
min_wait = 5000
max_wait = 9000
and after starting via
locust --host http://localhost:8080
and selecting any kind of # of user & starting the test, STDOUT gets flooded with
[2016-07-19 09:50:53,764] SGCSNYMACSJUST.local/ERROR/stderr: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/locust/core.py", line 267, in run
self.execute_next_task()
File "/usr/local/lib/python2.7/site-packages/locust/core.py", line 293, in execute_next_task
self.execute_task(task["callable"], *task["args"], **task["kwargs"])
File "/usr/local/lib/python2.7/site-packages/locust/core.py", line 305, in execute_task
task(self, *args, **kwargs)
TypeError: 'str' object is not callable
The text was updated successfully, but these errors were encountered:
I followed the quick start guide and failed quite in the beginning:
This is my
locustfile.py
and after starting via
and selecting any kind of # of user & starting the test, STDOUT gets flooded with
The text was updated successfully, but these errors were encountered: