Export test statistics to a webhook in headless mode
See original GitHub issueIs your feature request related to a problem? Please describe.
I have to read the csv files using a script and post them to some analytics db, this is often done repeatedly on a schedule. Every time I have to see what were the last records that were shipped, exclude them and post the new records to a web api or an analytics database.
Describe the solution you’d like
I would like to add a feature that posts data to a webhook, once the test statistics are ready. This will make it really convenient to collect and distribute stats, when locust is running in headless mode.
Locust currently have --csv
, it would be nice to have another argument(--webhook
) or event hook that can post that to a webhook url provided in the locust config.
Describe alternatives you’ve considered
Additional context
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Integrate the Headless Testing API with the HTTP / Webhook API ...
Setup the Headless Testing API trigger to run a workflow which integrates with the HTTP / Webhook API. Pipedream's integration platform allows you...
Read more >Understanding Webhooks in Headless CMS - ITNEXT
When you are ready, click the Send Test Payload button to test your webhook endpoint. This will generate a sample request to your...
Read more >PDF export for test run output
You can export your test runs as a PDF for easy sharing or archiving. Click the "Download PDF" button at the top-right of...
Read more >Headless Browser for Automated Test Framework
In the Rome release, ServiceNow improved UI testing by automating the creation of browsers to process Automated Test Framework (ATF) User ...
Read more >Webhooks - Bloomreach Documentation
Webhooks enable you to create custom integrations and let Bloomreach Engagement communicate with different services via APIs (HTTP request).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe use the
test_stop
event hook? http://docs.locust.io/en/stable/extending-locust.htmlI dont usually use the built in reporting at all (instead I use the events and send everything to a DB https://github.com/SvenskaSpel/locust-plugins/tree/master/locust_plugins/dashboards)
Making the reporting more composeable sounds good.