question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export test statistics to a webhook in headless mode

See original GitHub issue

Is 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:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
cyberwcommented, Apr 13, 2022

Maybe use the test_stop event hook? http://docs.locust.io/en/stable/extending-locust.html

1reaction
cyberwcommented, Apr 14, 2022

I 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found