แก้ไข

แชร์ผ่าน


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 and managing results and artifacts. The service runs tests with high parallelization and stores test results and artifacts to help you ship features faster and troubleshoot easily.

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.

Troubleshoot tests easily using reporting and artifacts

As applications grow, maintaining quality is crucial. Use the reporting feature of the service to troubleshoot test results with rich artifacts.

  • Publish test results and artifacts to the service and view them in the service portal for faster troubleshooting.
  • Integrate reporting with CI pipelines to get rich, consolidated reports.

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, the test results, trace files, and other test run files are available on the client machine. These are then published to the service from the client machine and can be viewed in the service portal.

To run existing tests with Microsoft Playwright Testing requires no changes to your test code, install the Microsoft Playwright Testing service package and specify the service endpoint for your workspace.

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, Playwright test run meta data like test start and end time, test minutes, who ran the test, and test results and artifacts generated by Playwright which are published to the service.

Next step