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
On executing a testcase.js using k6 with multiple groups and numerous checks inside them , it executes in proper order but before printing in summary (CLI) , they are being sorted . So the summary test cases output order is not in execution order
Steps to reproduce
1.) Wirte a test case test.js file with multiple groups and checks
2.) Execute it using K6 and compare order of execution and summary
eg:
export default function () {
// VU cookie jar
group("c", function () {
var res = {
"a": 1
}
check(res, {
"check a": (r) => true
})
group("a", function () {
var res = {
"a": 1
}
check(res, {
"check a": (r) => true
})
});
group("f", function () {
var res = {
"a": 1
}
check(res, {
"check a": (r) => true
})
});
group("e", function () {
var res = {
"a": 1
}
check(res, {
"check a": (r) => true
})
});
group("b", function () {
var res = {
"a": 1
}
check(res, {
"check a": (r) => true
})
});
});
group("d", function () {
var res = {
"a": 1
}
check(res, {
"check a": (r) => true
})
});
group("a", function () {
var res = {
"a": 1
}
check(res, {
"check a": (r) => true
})
});
}
On executing this file , the summary in output should be same as the execution order but the names are being sorted
The text was updated successfully, but these errors were encountered:
On executing a testcase.js using k6 with multiple groups and numerous checks inside them , it executes in proper order but before printing in summary (CLI) , they are being sorted . So the summary test cases output order is not in execution order
Steps to reproduce
1.) Wirte a test case
test.js
file with multiple groups and checks2.) Execute it using K6 and compare order of execution and summary
eg:
On executing this file , the summary in output should be same as the execution order but the names are being sorted
The text was updated successfully, but these errors were encountered: