Marlene Mhangami, a Senior Developer Advocate at each Microsoft and GitHub, lately delivered a presentation titled “Past Code Protection: Performance Testing with Playwright.” Mhangami, who works inside the Core AI group specializing in developer productiveness, shared insights into how AI will be built-in into software program growth workflows, significantly within the realm of testing.

The Function of Performance Testing
Mhangami started by setting the stage, emphasizing that whereas code protection is a standard metric, it does not assure that software program capabilities as anticipated from a person’s perspective. She highlighted the growing quantity of code being created, citing GitHub’s Octoverse report which confirmed over a billion commits in 2020 and projected progress to 14 billion by 2025. This surge in growth underscores the necessity for strong testing methods.
A key theme of the presentation was the impression of engineering environments on AI-assisted growth. Mhangami introduced a slide that urged a powerful correlation between a clear engineering setting and elevated AI productiveness beneficial properties. She defined that AI thrives in environments with good take a look at protection, modularity, and well-written code, permitting it to extra successfully help builders in finishing duties and enhancing software program high quality.
AI’s Impression on Developer Productiveness
The presentation explored the query of whether or not AI really makes builders extra productive. Mhangami introduced a case examine that illustrated how unchecked AI adoption, and not using a deal with clear code, may result in elevated entropy and a lower in code high quality, regardless of an increase in pull requests. This highlighted the significance of a structured strategy to integrating AI instruments.
Conversely, she urged that when AI is used successfully inside a clear, well-maintained codebase, it could amplify productiveness. This includes leveraging AI for duties like producing checks, writing code, and even refactoring. Mhangami touched upon the idea of Take a look at-Pushed Growth (TDD), explaining the everyday Purple-Inexperienced-Refactor loop and noting that AI can help in every stage, from producing preliminary failing checks to refactoring code to fulfill necessities.
Playwright for Performance Testing
Mhangami then launched Playwright, an open-source testing framework developed by Microsoft. She described Playwright as a device that automates end-to-end testing within the browser by simulating person interactions. Playwright helps a number of programming languages, together with Python, TypeScript, and C#, and may run checks in each headed and headless modes. The demo showcased how an AI agent could possibly be used to work together with the Playwright CLI to generate and run checks primarily based on characteristic requests.
The demonstration concerned a state of affairs the place an AI agent, supplied with a characteristic request electronic mail, was in a position to determine the mandatory checks, write Playwright scripts to execute them, and report on their success. This illustrated the potential for AI to considerably velocity up the take a look at writing course of and be certain that options operate as supposed.
Mhangami concluded by providing greatest practices for builders seeking to leverage AI of their testing workflows:
- Add screenshots to Pull Requests (PRs): This supplies visible context for code adjustments and take a look at outcomes.
- Use headless mode for multi-tasking: Headless mode permits for operating checks within the background with out opening a browser window, enabling extra environment friendly parallel execution.
- Commit earlier than operating the ‘Healer’: This means a workflow the place code is dedicated earlier than utilizing AI instruments to repair or refactor it, guaranteeing a steady baseline.
- Generate checks one characteristic at a time: This strategy helps preserve focus and handle complexity when working with AI-generated checks.
The presentation underscored the rising synergy between AI and software program growth, significantly in guaranteeing the standard and performance of functions by means of efficient testing methods with instruments like Playwright.









