How to get test status/check/thresholds in teardown function k6?

halo guys, i want to get test status/check/thresholds in teardown function k6 for update status to our test management (Testrail/Qase), what should i do in teardown ? thank you guys :pray:

Hi @Dfaw17, welcome ot the community forum! :tada:

You do not have access to those in teardown

But you do have access in handleSummary, you can see more in the docs as well as links to example code including the one that generates the final summary you see in the k6 output.

Hope this helps you!

1 Like