Skip to content
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

Open
ameetpal opened this issue May 5, 2024 · 2 comments · May be fixed by #3730
Open

Sending summary to remote endpoint #3732

ameetpal opened this issue May 5, 2024 · 2 comments · May be fixed by #3730
Assignees

Comments

@ameetpal
Copy link
Contributor

ameetpal commented May 5, 2024

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

@github-actions github-actions bot added the triage label May 5, 2024
@olegbespalov olegbespalov linked a pull request May 21, 2024 that will close this issue
5 tasks
@ameetpal
Copy link
Contributor Author

Any suggestion here, how we can send summary without explicitly importing a extension ?
AlsoIs there any plugin like extension we can create for k6 ?

@olegbespalov
Copy link
Collaborator

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

AlsoIs there any plugin like extension we can create for k6 ?

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants