-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create multiple task_set in http locust class? #573
Comments
what error are you getting? please include the entire stacktrace |
@cgoldberg from locust import TaskSet, task, HttpLocust class ApiClientBehavior(TaskSet):
class ApiClientBehavior1(TaskSet):
class ApiClient(HttpLocust):
If i do the below method: I'm getting this error messge. I have tried another as well. |
@nrbalajimca If all you want is to be able to run locust for multiple task_sets, just add multiple Client classes in your locustfile, each using its separate task_set
locust will load both Client classes when run. |
@prince-mishra ,and how to run these clients with a single command? This way? |
Addressed, closing |
Is it possible for running multiple task-sets from using what was suggested above (making multiple clients) that we can have multiple graphs be shown? Thanks! |
I have tried to create a multipls task_set under locust class. While creating am getting error message. Pls assist me. Eg. below
class ApiClient(HttpLocust):
task_set = ApiClientBehavior
task_set = ApiClientBehavior1
Also i have tried below way also,
class ApiClient(HttpLocust):
# taskset is just a POPO
task_set = ApiClientBehavior
task_set1 = ApiClientBehavior1
The text was updated successfully, but these errors were encountered: