North-Seattle-College / ad440-winter2021-thursday-repo

NSC AD 440 Winter 2021 Thursday cohort practicum repo
Apache License 2.0
2 stars 27 forks source link

[Task] Capture the time it takes to load /users/{userId} 40 times WITH cache #308

Closed unicornsleuth closed 3 years ago

unicornsleuth commented 3 years ago

This PR uses Puppeteer to load the /users/2 page and time it. It does this 40 times, taking & saving screenshots, and averages the time.

My results: Total time: 21.789999999999996 seconds Average time: 0.5447499999999998 seconds

To test: fork my repo & checkout the branch yaholl/sprint6 navigate to /test/ui in terminal, run node time-users-id.js you should see confirmation of 40 screenshots being taken, along with the time it took to load the page each time at the end, you will see the Total time and Average time you can look in test/results/ui-test-results/users-id you should see a new folder called group- and the current date/time inside, there should be 40 screenshots of the page

research: 1 hour coding: 1 hour reworking and testing: 2 hours 30 mins creating/fixing PR: 1 hour