locustio / locust

Write scalable load tests in plain Python 🚗💨
https://locust.cloud
MIT License
24.77k stars 2.97k forks source link

Downloading report should provide a meaningful human name #2931

Open obriat opened 5 days ago

obriat commented 5 days ago

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 commented 5 days ago

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

cyberw commented 5 days ago

Makes a ton of sense. PRs welcome!

jayantp2003 commented 4 days ago

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

obriat commented 3 days ago

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

cyberw commented 3 days ago

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 :)

obriat commented 3 days ago

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?)