You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am suggesting a new feature, not asking a question
Description
Hi,
When I run locust --help I can see that we are allowed to pass --json as a flag to see the result of tests as a JSON, but what I need is to store that json in a file. Is it possible to implement this feature?
I know for csv you can pass a filename and it will store the result in that file but this is not the case for json which makes me wonder why not? It should be almost the same as csv IMO.
$ locust --help
# ...
Request statistics options:
--csv <filename> Store request stats to files in CSV format. Setting this option will generate three files: <filename>_stats.csv, <filename>_stats_history.csv and
<filename>_failures.csv. Any folders part of the prefix will be automatically created
--csv-full-history Store each stats entry in CSV format to _stats_history.csv file. You must also specify the '--csv' argument to enable this.
--print-stats Enable periodic printing of request stats in UI runs
--only-summary Disable periodic printing of request stats during --headless run
--reset-stats Reset statistics once spawning has been completed. Should be set on both master and workers when running in distributed mode
--html <filename> Store HTML report to file path specified. Able to parse certain tags - {u}, {r}, {t} and convert them to number of users, spawn rate and run time
respectively.
--json Prints the final stats in JSON format to stdout. Useful forparsing the resultsin other programs/scripts. Use together with --headless and --skip-log
for an output only with the json data.
# ...
The text was updated successfully, but these errors were encountered:
It would nice to have the json argument accept a filename because redirecting the stdout to a json file requires that you use --skip-log to make sure the output is valid json. In a CICD pipeline, for example, you still want to show the relevant log statements, but then want to upload the final result file afterwards.
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Description
Hi,
When I run
locust --help
I can see that we are allowed to pass--json
as a flag to see the result of tests as a JSON, but what I need is to store that json in a file. Is it possible to implement this feature?I know for csv you can pass a filename and it will store the result in that file but this is not the case for json which makes me wonder why not? It should be almost the same as csv IMO.
The text was updated successfully, but these errors were encountered: