What is Microsoft Playwright Testing Preview?

Microsoft Playwright Testing Preview is a fully managed service for end-to-end testing built on top of Playwright. With Playwright, you can automate end-to-end tests to ensure your web applications work the way you expect it to, across different web browsers and operating systems. The service abstracts the complexity and infrastructure for running Playwright tests with high parallelization.

Run your Playwright test suite in the cloud, without changes to your test code or modifications to your tooling setup. Use the Playwright Test Visual Studio Code extension for a rich editor experience, or use the Playwright CLI to add automation within your continuous integration (CI) workflow.

Get started with Quickstart: run your Playwright tests at scale with Microsoft Playwright Testing.

To learn more about how to create end-to-end tests with the Playwright framework, visit the Getting started documentation on the Playwright website.

Important

Microsoft Playwright Testing is currently in preview. For legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability, see the Supplemental Terms of Use for Microsoft Azure Previews.

Accelerate tests with parallel remote browsers

As your application becomes more complex, your test suite increases in size. The time to complete your test suite also grows accordingly. Use parallel remote browsers to shorten the overall test suite completion time.

  • Distribute your tests across many parallel browsers, hosted on cloud infrastructure.

  • Scale your tests beyond the processing power of your developer workstation, local infrastructure, or CI agent machines.

  • Consistent regional performance by running your tests on browsers in an Azure region that's closest to your client machine.

Learn more about how you can configure for optimal performance.

Test consistently across multiple operating systems and browsers

Modern web apps need to work flawlessly across numerous browsers, operating systems, and devices.

  • Run tests simultaneously across all modern browsers on Windows, Linux, and mobile emulation of Google Chrome for Android and Mobile Safari.

  • Using service-managed browsers ensures consistent and reliable results for both functional and visual regression testing, whether tests are run from your team's developer workstations or CI pipeline.

  • Microsoft Playwright Testing supports all browsers supported by Playwright.

Endpoint testing

Use cloud-hosted remote browsers to test web applications regardless of where they're hosted, without having to allow inbound connections on your firewall.

Playwright support

Microsoft Playwright Testing is built on top of the Playwright framework.

How it works

Microsoft Playwright Testing instantiates cloud-hosted browsers across different operating systems. Playwright runs on the client machine and interacts with Microsoft Playwright Testing to run your Playwright tests on the hosted browsers. The client machine can be your developer workstation or a CI agent machine if you run your tests as part of your CI workflow. The Playwright test code remains on the client machine during the test run.

Diagram that shows an architecture overview of Microsoft Playwright Testing.

After a test run completes, Playwright sends the test run metadata to the service. The test results, trace files, and other test run files are available on the client machine.

To run existing tests with Microsoft Playwright Testing requires no changes to your test code. Add a service configuration file to your test project, and specify your workspace settings, such as the access token and the service endpoint.

Learn more about how to determine the optimal configuration for optimizing test suite completion.

In-region data residency & data at rest

Microsoft Playwright Testing doesn't store or process customer data outside the region you deploy the workspace in. When you use the regional affinity feature, the metadata is transferred from the cloud hosted browser region to the workspace region in a secure and compliant manner.

Microsoft Playwright Testing automatically encrypts all data stored in your workspace with keys managed by Microsoft (service-managed keys). For example, this data includes workspace details and Playwright test run meta data like test start and end time, test minutes, and who ran the test.

Next step