Issue
I just copy the example from from the locust site.
from locust import HttpUser, task, User
class HelloWorld(User):
@task
def hello_world(self):
self.client.get("/hello")
self.client.get("/world")
I get the following error
No tasks defined on HelloWorld. Use the @task decorator or set the 'tasks' attribute of the User (or mark it as abstract = True if you only intend to subclass it)
I was expecting the example to work getting same error for simple test but it works on my mac aswell. Did I miss something.
Solution
So hopefully this helps someone in my helm chart I declared a tag and forgot about it. So it was filtering according to that tag... thus not running any tasks! Resolved!
Answered By - Shawn Rose
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.