SvenskaSpel/locust-plugins

Create plugin (extension) to change file name of automated html report with timestamp and locustfile name

Closed this issue · 4 comments

I needed locust to save the name of the automated HTML report files at runtime with timestamp+locustfilename.html.
I created a feature where it extends the locust and directly changes the name of the html_file when it comes with the arg --html=rename.html
So it will overwrite the name rename.html to _.html
This way I can organize and save all executions by time and by suite.

Not really a good fit for locust-plugins. Perhaps you can just write a few lines of code in a function tied to the quit event handler?

https://github.com/locustio/locust/blob/master/examples/test_data_management.py#L66

Agree, it is something that is not too complex. I'm thinking more in terms of extension and plugin. Facilitate this option for people who do not have full command of the tool. For example, this CSV reading lib with little code is also something interesting, which didn't need a lot of code. https://github.com/SvenskaSpel/locust-plugins/blob/master/locust_plugins/csvreader.py

sorry my english is not very good. I'm using Google Translate to help

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

This issue was closed because it has been stalled for 10 days with no activity. This does not necessarily mean that the issue is bad, but it most likely means that nobody is willing to take the time to fix it. If you have found Locust useful, then consider contributing a fix yourself!