export const options = {
summaryTimeUnit: 'ms',
scenarios: {
CreatePicking: {
exec: 'CreatePicking',
executor: 'per-vu-iterations',
vus: 1,
iterations: 1
},
}
}
When I use metrics in a loop, what is the behaivour? Does the timing.duration increase for every loop? Or just calculates one time?
while (createdIsCompleted == false) { // it will returns 3 time
let checkCellRes = http.post(requestUrlAPI + 'testCell', JSON.stringify({
cellText: `${cellClear}`,
}), generateTokenHeader)
checkCellTrend.add(checkCellRes.timings.duration);
}