Skip to content

Commit

Permalink
Add the summary function
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhay2412 committed Feb 28, 2024
1 parent 0ce5635 commit 1b228e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Scripts/teaStorek6TestScript1.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,11 @@ export default function () {
groupResponseTimes['TeaStore Checkout'] = (groupResponseTimes['TeaStore Checkout'] || 0) + duration;
sleep(1);
});
}

export function handleSummary(data) {
console.log("\nResponse times by group:");
for (const groupName in groupResponseTimes) {
console.log(` ${groupName}: ${groupResponseTimes[groupName]} ms`);
}
}

0 comments on commit 1b228e7

Please sign in to comment.