Creating test loads
The Playwright tests can now be used to simulate a user load, to run multiple users concurrently. For this, just compute resources are needed to run the needed load. By reducing the delay time, a few “virtual users” can be used to simulate the load of a bigger number of real users. How long real users are thinking between moves needs to be analyzed monitoring the solution in production.
Note
Reducing the delay between moves, you can use fewer compute resources to simulate a large number of real users with just a few virtual users. There’s also a good reason to increase the delay time for the time used by real users. In Chapter 12, we’ll enhance the solution with caching. What if the cached game is not available after a user has a long delay between moves? Does the application still behave correctly? You should also run such integration tests.
Using the Microsoft Playwright Testing cloud service, compute resources are available...