Asserting Microsoft Playwright Testing: Scalable end-to-end testing for contemporary internet apps | Azure Weblog

This weblog has been co-authored by Ashish Shah, Associate Director of Engineering, Azure Developer Expertise.
We’re excited to announce the preview of Microsoft Playwright Testing, a brand new service for working Playwright assessments 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 assessments with a lot greater parallelization throughout totally different working system-browser combos concurrently. This implies quicker check runs with broader situation protection, which helps velocity up supply of options with out sacrificing high quality.
Prepared to leap in? Get your free Azure trial and begin working your assessments at cloud-scale with Microsoft Playwright Testing.
Get check suite outcomes quicker
Including Playwright assessments to your steady integration (CI) workflow helps be sure that because the app evolves, your internet app experiences proceed to work the way in which you count on. 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, probably delaying your characteristic supply. Growth groups are already underneath strain to rapidly deploy app enhancements. To work round lengthy wait instances for check completion, it is not uncommon follow for improvement groups to selectively run solely a small subset of assessments. In a extra detrimental situation, a crew could select to execute assessments much less continuously, corresponding to only some instances every week in an integration surroundings as a substitute of with each pull request. This method 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 crew.
With the @playwright/test runner, your assessments run in unbiased, parallel employee processes with every course of beginning its personal browser. Rising the variety of parallel employees can scale back the time it takes to finish the complete check suite. You’ll be able to set the variety of employees utilizing the command line:
npx playwright check --workers=4
Nonetheless, if you run assessments 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. 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 may enhance the variety of employees at cloud-scale to a lot greater numbers. The employee processes orchestrated by @playwright/check proceed to run regionally however the browser situations, that are resource-intensive, now run within the cloud. You’ll be able to see within the demo video beneath how 1000’s of assessments 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 methods and browser combos
App complexity isn’t the one think about growing check suite measurement. Trendy internet apps must work flawlessly throughout quite a few browsers, working methods, and gadgets. 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 offered by the service to run these assessments concurrently throughout all fashionable rendering engine. This contains Chromium, WebKit and Firefox on Home windows, and Linux and cell emulation of Google Chrome for Android and Cell Safari. Additionally, the service-managed browsers guarantee constant and dependable outcomes for each useful and visible regression testing, whether or not assessments are run out of your CI pipeline or improvement 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 check code adjustments required
In case you’re utilizing Playwright at present, getting began with Microsoft Playwright Testing is simple! 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 may join your check suite to the service and unlock the complete 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 assessments 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 may give attention to thorough utility 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 at present. Register utilizing your Azure account (or create one free), then comply with our Quickstart information to configure your Playwright assessments and run them at cloud-scale.
Subsequent you may discover our flexible consumption-based pricing the place you pay just for what you employ.
Share your suggestions
What would you wish to see? We’d love to listen to your feedback to assist form the way forward for this service.