-
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
Tasks running, no stats collected. #301
Comments
What stats would there be if you weren't calling out to anything? This is expected. |
I have a custom API that I need to test - is there a way I could capture stats for @task? |
My usecase: @task class MyLocust(Locust): execute_some_method actually talks to a backend service, but I don't know how to capture stats for this. |
@krzysztofszymanski have you taken a look at http://docs.locust.io/en/latest/testing-other-systems.html? You'll just need to trigger the |
I just started using locust and I am having a very similar issue. Not sure if I am doing something wrong. I am not seeing any stats. All the examples I have seen show that there are stats displayed on the web ui with very similar setup. I have printed out responses locally and I see successful outputs and the status codes are appropriate (2xx for successes and 4xx for failures) locust version: 0.7.3 Locustfile: from locust import HttpLocust, TaskSet, task class SignupBehavior(TaskSet):
|
I figured out the issue, it has to do with catch_response=True, i removed it and its working. I used it without understanding what it does :( |
@shyamvala Thank you, I did exactly the same thing. |
@shyamvala Thank you, I removed the catch_response=True and stats started popping up on the UI |
I installed locust with pip, used this example:
from locust import Locust, TaskSet, task
class MyTaskSet(TaskSet):
@task
def my_task(self):
print "executing my_task"
class MyLocust(Locust):
task_set = MyTaskSet
min_wait = 5000
max_wait = 15000
run it with:
locust -f locus_test.py
I'm seeing tasks logging:
[2015-06-26 18:08:05,921] krzysztofs-MacBook-Pro.local/INFO/stdout:
[2015-06-26 18:08:05,922] krzysztofs-MacBook-Pro.local/INFO/stdout: executing my_task
[2015-06-26 18:08:05,923] krzysztofs-MacBook-Pro.local/INFO/stdout:
[2015-06-26 18:08:05,925] krzysztofs-MacBook-Pro.local/INFO/stdout: executing my_task
[2015-06-26 18:08:05,925] krzysztofs-MacBook-Pro.local/INFO/stdout:
[2015-06-26 18:08:05,928] krzysztofs-MacBook-Pro.local/INFO/stdout: executing my_task
[2015-06-26 18:08:05,928] krzysztofs-MacBook-Pro.local/INFO/stdout:
Locust web shows no stats.
this url: http://localhost:8089/stats/requests returns:
{"errors": [], "stats": [{"median_response_time": null, "min_response_time": 0, "current_rps": 0, "name": "Total", "num_failures": 0, "max_response_time": 0, "avg_content_length": 0, "avg_response_time": 0, "method": null, "num_requests": 0}], "state": "hatching", "total_rps": 0, "fail_ratio": 0.0, "user_count": 2}
The text was updated successfully, but these errors were encountered: