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
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)
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)
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: