locust icon indicating copy to clipboard operation
locust copied to clipboard

Downloading report should provide a meaningful human name

Open obriat opened this issue 1 year ago • 6 comments

Prerequisites

Description

Hi, When downloading the report through the Web UI, the default name provided is report_<timesatmp>.html.

I suggest this default format: <START DATE YYYY-MM-DD-HH:MM> - Locust - <SCRIPT NAME> - <HOSTNAME>.html

This format could help sorting and finding previous reports for an human beeing

obriat avatar Oct 09 '24 09:10 obriat

By the way the report summary should include initial conditions: number of users, ramp and duration

obriat avatar Oct 09 '24 09:10 obriat

Makes a ton of sense. PRs welcome!

cyberw avatar Oct 09 '24 12:10 cyberw

I am interested working on this issue, Please assign me this issue.

jayantp2003 avatar Oct 10 '24 21:10 jayantp2003

I am interested working on this issue, Please assign me this issue.

My workflow: fork the project, create a branch named after this issue, once pushed, create a PR to this project

obriat avatar Oct 11 '24 10:10 obriat

I'm assigning it to @obriat because he's the one who originally filed the issue, but I don't really care who takes a crack at it :)

cyberw avatar Oct 11 '24 10:10 cyberw

Functions stats_report & _download_csv_suggest_file_name to alter in /locust/locust/web.py

TODO: don't know where to get the missing data: start date, filename & host (from /locust/locust/html.py?)

obriat avatar Oct 11 '24 13:10 obriat

https://github.com/locustio/locust/pull/2947

obriat avatar Oct 20 '24 21:10 obriat