I have a custom framework that does not execute on K6’s default function, but rather I set my own scenarios
When executed, the data appears but the dashboard appears without data. Is it possible to do this or should it always go through the default function?
Note; executiong with v0.7.3-alpha.1
Hi @LucasT1 !
I’m curious to learn more about your setup since I’ve tried a simple script with a custom exec
function like:
import http from 'k6/http';
import { sleep } from 'k6';
export const options = {
scenarios: {
custom: {
executor: 'constant-vus',
vus: 1,
duration: '5m',
exec: 'my'
},
},
};
export function my() {
http.get('https://test.k6.io');
sleep(1);
}
And I was able to see the results on a web dashboard.
Could you please provide a minimum reproducible example that shows the problem?
Cheers!
Hi @olegbespalov , It seems that the problem was something else, it was related to this bug Dasboard does not display data using setup() function · Issue #185 · grafana/xk6-dashboard · GitHub , when execute test with ‘export default setup()’ the dashboard doesn´t show data.