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
HTML Report cannot be displayed #2704
Comments
Please re-test using latest version (2.27.0) |
Hi @cyberw, Thanks for the suggestion, I upgraded and tested locally, It got unresponsive around 60K failures, In my opinion, I would like to disable showing failures/exceptions or at least set a default num of items, I do not see much value on trying to render all rows in the report, it turns into a really big scrollable page that cannot be easily navigated, Thanks! |
Ah, I didnt read your report closely. The problem is with unique error messages, right? I’ll look into this. Perhaps we can do something on the UI side as well, but we could/should probably group any new exceptions after 1000 unique ones as just ”other” or something. For now you should be able to do this manually by just setting the error message to something less unique. |
That's a great idea, thanks for looking into it Can you please point me to the docs/code on how to set a the error, to avoid producing tons of them? right now I am not catching the exception, so I am doing self.client.post(
url,
data=message,
headers={
"Content-Type": "application/octet-stream"
}
) |
Use catch_response=True and response.failure(”something went wrong, but lets keep the error message the same for all”) as documented here: https://docs.locust.io/en/stable/writing-a-locustfile.html#validating-responses |
Prerequisites
Description
The HTML report cannot be displayed on the browser for downloading, when a large number of failure/exception are present in the test.
It would be great if a max default value can be set here
https://github.com/locustio/locust/blob/master/locust/html.py#L108
So the page does not try to load tons of failures/exceptions that crashes the UI
Command line
-f my_test.py --autostart --modern-ui
Locustfile contents
Python version
3.11
Locust version
2.24.0
Operating system
MacOS
The text was updated successfully, but these errors were encountered: