Skip to content
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

Add optional parameter parsing for HTML file name #3005

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ktchani
Copy link

@ktchani ktchani commented Dec 3, 2024

Added a feature for adding optional parameters to the HTML report file name.

Here is an example:
locust --headless -u 12 -r 10 -t 10s --host http://127.0.0.1:8000 --html "{u}_{r}_{t}_locust.html"

This would generate a filename:
12_10_10_locust.html

I use locust a lot at work, and in order to keep track of various test conditions among all the report files, I would manually update the filename. With this change, the file names can be more indicative of what the test was for. I would also consider adding P50, avg, etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant