@ned Hello , I would really appreciate your comments on our approach.
We are trying to use K6 to check performance but not in aspect of load.
Our use case is to run a request and verify that request respects the benchmarking.
We have more than 100 scenarios and it will increase
Currently we have 100 scenarios in one file and are running in parallel using per-vu-iterations.
We have define 100 scenarios in options as well.
Our main goal is to run individual request 5 times so we have kept options for each scenario as below.
export let options = {
discardResponseBodies: false,
scenarios: {
GetApplets: {
executor: 'per-vu-iterations',
exec: 'getApplets',
vus: 1,
iterations: 5,
maxDuration: '50s',
}});
I also want to add a check for each scenario using p(n) function. Can we use p(n) inside check function? If not, is there a way we can put p(n) w.r.t each scenario ? (as p(n) differs for each scenario in our case)
example:
check(response, {
[description]: () => response.http_req_duration = ['p(80)<20000'] || fail("http_req_duration is null")
});
P.S : Advance Example I referred last example were we can set for individual scenario inside option but couldn’t find anything w.r.t check function.
Your comments will be appreciated. Thank you @ned