diff --git a/test/stressTest/main.js b/test/stressTest/main.js index c8ca499..6efaf78 100644 --- a/test/stressTest/main.js +++ b/test/stressTest/main.js @@ -64,7 +64,7 @@ async function createRoomContainers() { const results = await Promise.allSettled(roomPromises); const successfulRooms = results.filter(r => r.status === 'fulfilled' && r.value).length; - console.log(`Total rooms created and connected: ${successfulRooms}`); + console.log(`Total rooms created and connected (${numberRooms}): ${successfulRooms}`); console.log('Finished room creation and teacher connection'); } @@ -177,6 +177,19 @@ function disconnectParticipants() { console.log('All participants disconnected successfully.'); } +function generateExecutionData() { + console.log('Generating execution data'); + aggreatedData = {}; + Object.keys(roomAssociations).forEach((roomId, roomIndex) => { + const participants = roomAssociations[roomId]; + const data = participants.watcher.roomRessourcesData; + aggreatedData.push(data); + + + }); + console.log('finished generating execution data'); +} + async function main() { try { await createRoomContainers();