Does anyone know how to generate custom csv output files in k6?

Hi guys, do you have any idea on generating a csv output file in k6, like below.
id, result, version // this is the column name
test case 1,passed,media1
test case 2,failed,media1
test case 3,passed,media1

==========================================
Test_script.js
import { group } from ‘k6’;

export default function () {
group(‘test case 1’, function () {
// …get the result for test case 1
});
group(‘test case 2’, function () {
// …get the result for test case 2
});
group(test case 3’, function () {
// …get the result for test case 3
});
}

Hello
Just handle summary data to make it a desired csv format

1 Like