Simulating users with Azure Load Testing
In Chapter 10, we created Playwright tests that were used to create load tests. These Playwright tests allowed us to use .NET code to easily create a complete flow so that we could play a game from a test. Using Microsoft Azure, we can use another service to create tests and get integrated analysis with Azure services: Azure Load Testing.
Note
At the time of writing, the Microsoft Playwright Testing cloud service is great for testing the load of web applications. However, it doesn’t support load testing APIs, so we’ll use Azure Load Testing here. You can still use Azure compute (for example, Azure Container Instances) to run Playwright tests, but Azure Load Testing has a better report configuration and report functionality.
Before creating the load test, make sure you deploy the solution to Microsoft Azure using azd up. Check the README file for this chapter for more details about the different azd versions.
After creating...