-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Sending summary to remote endpoint #3732
Comments
Any suggestion here, how we can send summary without explicitly importing a extension ? |
There is no such functionality apart from https://k6.io/docs/results-output/end-of-test/custom-summary/#example-send-data-to-remote-server
Yes, you could create your own extension by following the https://k6.io/docs/extensions/get-started/create/ However, as we said and if I'm getting you right if your extension will be used an internal event API from #3730 it's highly possible that it will stop work at some point since we do consider this API internal for now #3682 (comment) |
Closing as at the moment we don't plan to offer this functionality, it can be solved with other already available features. Recap of the solutions:
|
Feature Description
Hey,
Our team is providing k6 testing as a platform in our org and other teams use our platform to test their services. To collect the test result summary, we are exposing an endpoint and in test scripts we have to overide the handleSummery function and write the code to send it to a server. As indicated in K6 docs
https://k6.io/docs/results-output/end-of-test/custom-summary/#example-send-data-to-remote-server
However, every test script have to export handleSummary function, So we were looking into the solution were we can provide a default behaviour for sending the summary data.
We have already raised this issue in Grafana community and we were suggested to listen to Event in custom K6 extension, so we tried making extension for this but since internal state like events are only exposed in JS extension, user still have to import that extension in app. Is there a way to make use a extension in k6 without needing to import in test script file ?
Or may be we can find some other way to tranferr summery outside of th testing machine
Suggested Solution (optional)
No response
Already existing or connected issues / PRs (optional)
#3683
The text was updated successfully, but these errors were encountered: