In my export default function I have a scenerio and working witk about 10 endpoint. I m using for loop for some endpoints. As a result, I want to calculate total duration time. When I add below code it gives me duration for last endpoint. But need the total duration like a iteration_duration. Because I use reporting so I should show iteration duration as a Metric.
completePickingTrend.add(completePickingCompleteProcessRes.timings.duration);
my options function;
export const options = {
summaryTimeUnit: 'ms',
scenarios: {
CreatePicking: {
exec: 'CreatePicking',
executor: 'per-vu-iterations',
vus: 2,
iterations: 1
},
}
}