Home Cloud Computing Saying Microsoft Playwright Testing: Scalable end-to-end testing for contemporary net apps | Azure Weblog

Saying Microsoft Playwright Testing: Scalable end-to-end testing for contemporary net apps | Azure Weblog

Saying Microsoft Playwright Testing: Scalable end-to-end testing for contemporary net apps | Azure Weblog


This weblog has been co-authored by Ashish Shah, Companion Director of Engineering, Azure Developer Expertise.

We’re excited to announce the preview of Microsoft Playwright Testing, a brand new service for working Playwright checks simply at scale. Playwright, a fast-growing, open-source framework, permits dependable end-to-end testing and automation for contemporary net apps. Microsoft Playwright Testing is a completely managed service that makes use of the cloud to allow you to run Playwright checks with a lot larger parallelization throughout completely different working system-browser combos concurrently. This implies sooner check runs with broader situation protection, which helps pace up supply of options with out sacrificing high quality.

Prepared to leap in? Get your free Azure trial and begin working your checks at cloud-scale with Microsoft Playwright Testing.

Get check suite outcomes sooner

Including Playwright checks to your steady integration (CI) workflow helps make sure that because the app evolves, your net app experiences proceed to work the best way you anticipate. However because the app turns into extra complicated, the check suite required for complete testing throughout a number of browser and working system combos additionally will increase in measurement. This results in longer check suite completion instances, doubtlessly delaying your characteristic supply. Growth groups are already underneath stress to rapidly deploy app enhancements. To work round lengthy wait instances for check completion, it is not uncommon apply for growth groups to selectively run solely a small subset of checks. In a extra detrimental situation, a workforce could select to execute checks much less ceaselessly, akin to just a few instances per week in an integration atmosphere as an alternative of with each pull request. This strategy can doubtlessly delay catching points, complicate the method of pinpointing the reason for issues, and adversely have an effect on the general productiveness of the event workforce.

With the @playwright/check runner, your checks run in impartial, parallel employee processes with every course of beginning its personal browser.  Growing the variety of parallel employees can cut back the time it takes to finish the total check suite. You may set the variety of employees utilizing the command line:

npx playwright check --workers=4

Nonetheless, whenever you run checks domestically or in your CI pipeline, you’re restricted to the variety of central processing unit (CPU) cores in your native machine or CI agent machine. In some unspecified time in the future including extra employees will result in useful resource rivalry, slowing down every employee and introducing check flakiness.

By utilizing Microsoft Playwright Testing service you’ll be able to improve the variety of employees at cloud-scale to a lot larger numbers. The employee processes orchestrated by @playwright/check proceed to run domestically however the browser situations, that are resource-intensive, now run within the cloud. You may see within the demo video beneath how 1000’s of checks run on 50 parallel browsers within the cloud managed by Microsoft Playwright Testing, considerably decreasing the wait time for check outcomes.

Constant check outcomes throughout a number of working programs and browser combos

App complexity isn’t the one think about growing check suite measurement. Trendy net apps must work flawlessly throughout quite a few browsers, working programs, and units. Testing throughout all these variables will increase the period of time it takes to run your check suite. With Microsoft Playwright Testing you’ll use the scalable parallelism supplied by the service to run these checks concurrently throughout all trendy rendering engine. This contains Chromium, WebKit and Firefox on Home windows, and Linux and cellular emulation of Google Chrome for Android and Cell Safari. Additionally, the service-managed browsers guarantee constant and dependable outcomes for each purposeful and visible regression testing, whether or not checks are run out of your CI pipeline or growth machine. This in depth cross-compatibility testing helps guarantee your net app delivers constant efficiency and performance throughout all platforms, optimizing the expertise for any consumer, no matter their browser or working system.

The figure shows how Microsoft Playwright Testing can be seamlessly integrated into your development team's workflows, highlighting that the service's benefits can be leveraged from both your existing CI pipelines and developer workstations.
Determine 1-Use Microsoft Playwright Testing service out of your CI pipelines and code editors.

No check code adjustments required

In case you’re utilizing Playwright as we speak, getting began with Microsoft Playwright Testing is straightforward! The service is designed to seamlessly combine together with your Playwright check suite, no adjustments to current check code required. In just some steps you’ll be able to join your check suite to the service and unlock the total potential of cloud-powered parallel testing. Plus, the service helps a number of variations of Playwright and updates with every new Playwright launch, making certain your checks run towards the newest browser variations and applied sciences whereas serving to to maintain your app present, strong, and safe. Now you’ll be able to deal with thorough software testing with out the concern of managing a posh check infrastructure.

Get began with a free trial

Uncover all Microsoft Playwright Testing has to supply utilizing the free trial as we speak. Check in utilizing your Azure account (or create one free), then comply with our Quickstart information to configure your Playwright checks and run them at cloud-scale.

Subsequent you’ll be able to discover our versatile consumption-based pricing the place you pay just for what you utilize.

Share your suggestions

What would you wish to see? We’d love to listen to your suggestions to assist form the way forward for this service.

Be taught extra about Microsoft Playwright Testing.


Supply hyperlink


Please enter your comment!
Please enter your name here