This weblog has been co-authored by Ashish Shah, Partner Director of Engineering, Azure Developer Experience.
We are 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 internet 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 increased parallelization throughout totally different working system-browser mixtures concurrently. This means sooner take a look at runs with broader situation protection, which helps velocity up supply of options with out sacrificing high quality.
Get take a look at suite outcomes sooner
Adding Playwright checks to your steady integration (CI) workflow helps make sure that because the app evolves, your internet app experiences proceed to work the way in which you anticipate. But because the app turns into extra advanced, the take a look at suite required for complete testing throughout a number of browser and working system mixtures additionally will increase in dimension. This results in longer take a look at suite completion instances, probably delaying your function supply. Development groups are already underneath stress to shortly deploy app enhancements. To work round lengthy wait instances for take a look at completion, it is not uncommon follow for growth groups to selectively run solely a small subset of checks. In a extra detrimental situation, a group could select to execute checks much less continuously, equivalent to only some instances every week in an integration setting as a substitute of with each pull request. This strategy can probably delay catching points, complicate the method of pinpointing the reason for issues, and adversely have an effect on the general productiveness of the event group.
With the @playwright/take a look at runner, your checks run in impartial, parallel employee processes with every course of beginning its personal browser. Increasing the variety of parallel employees can scale back the time it takes to finish the total take a look at suite. You can set the variety of employees utilizing the command line:
npx playwright take a look at --workers=4
However, once you run checks regionally 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. At some level including extra employees will result in useful resource rivalry, slowing down every employee and introducing take a look at flakiness.
By utilizing Microsoft Playwright Testing service you possibly can enhance the variety of employees at cloud-scale to a lot larger numbers. The employee processes orchestrated by @playwright/take a look at proceed to run regionally however the browser cases, that are resource-intensive, now run within the cloud. You can see within the demo video under how 1000’s of checks run on 50 parallel browsers within the cloud managed by Microsoft Playwright Testing, considerably lowering the wait time for take a look at outcomes.
Consistent take a look at outcomes throughout a number of working methods and browser mixtures
App complexity isn’t the one consider rising take a look at suite dimension. Modern internet apps must work flawlessly throughout quite a few browsers, working methods, and units. Testing throughout all these variables will increase the period of time it takes to run your take a look at suite. With Microsoft Playwright Testing you’ll use the scalable parallelism offered by the service to run these checks concurrently throughout all trendy rendering engine. This consists of Chromium, WebKit and Firefox on Windows, and Linux and cell emulation of Google Chrome for Android and Mobile Safari. Also, the service-managed browsers guarantee constant and dependable outcomes for each practical and visible regression testing, whether or not checks are run out of your CI pipeline or growth machine. This intensive cross-compatibility testing helps guarantee your internet app delivers constant efficiency and performance throughout all platforms, optimizing the expertise for any person, no matter their browser or working system.
No take a look at code adjustments required
If you’re utilizing Playwright at the moment, getting began with Microsoft Playwright Testing is straightforward! The service is designed to seamlessly combine along with your Playwright take a look at suite, no adjustments to present take a look at code required. In only a few steps you possibly can join your take a look at 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, guaranteeing your checks run in opposition to the most recent browser variations and applied sciences whereas serving to to maintain your app present, sturdy, and safe. Now you possibly can concentrate on thorough software testing with out the fear of managing a posh take a look at infrastructure.
Get began with a free trial
Discover all Microsoft Playwright Testing has to supply utilizing the free trial at the moment. Sign in utilizing your Azure account (or create one free), then observe our Quickstart information to configure your Playwright checks and run them at cloud-scale.
Next you possibly can discover our versatile consumption-based pricing the place you pay just for what you employ.
Share your suggestions
What would you prefer to see? We’d love to listen to your suggestions to assist form the way forward for this service.
Learn extra about Microsoft Playwright Testing.