Automate end-to-end testing of Power Platform applications using Playwright in Azure DevOps pipelines with comprehensive reporting and failure analysis.
Automate end-to-end testing of your Power Platform applications with Playwright in Azure DevOps pipelines. This extension provides a comprehensive testing solution that sets up Playwright, executes tests against Power Apps, and generates detailed reports with failure analysis for CI/CD workflows.
⚠️ Important: This extension requires Windows runners and is only compatible with Windows-based Azure DevOps pipeline agents.
Created by:
Setup
Ensure you have a Windows-based Azure DevOps pipeline agent (this extension does not support Linux or macOS agents)
Install the DevOps extension in your DevOps Organization using the Get it free button
Navigate to your Azure DevOps pipeline
Add the Playwright for Power Platform task to your pipeline
Configure your test parameters and Power Platform credentials
This task enables automated end-to-end testing of Power Platform applications using Playwright. It handles the complete testing lifecycle from environment setup to detailed failure analysis, making it perfect for CI/CD pipelines that need to validate Power Apps functionality.
Key Features
Windows Agent Compatibility: Designed specifically for Windows-based Azure DevOps pipeline agents
Automated Environment Setup: Automatically installs Node.js, Playwright, and all required dependencies
Power Platform Integration: Native support for Power Apps authentication and testing scenarios
Multi-Browser Testing: Execute tests across Chromium, Firefox, WebKit, or all browsers simultaneously
Comprehensive Reporting: Generates HTML reports, JSON results, JUnit XML, and detailed trace files
Advanced Failure Analysis: Captures screenshots, videos, DOM snapshots, and network activity on test failures
Environment Variable Management: Seamlessly passes Azure DevOps variables to test scripts
Trace Debugging: Optional trace capture for step-by-step test execution analysis
Flexible Test Organization: Supports custom test locations and output directories
How It Works
Environment Preparation: The task clones a Playwright testing framework specifically designed for Power Platform
Dependency Installation: Automatically installs Node.js, npm packages, and Playwright browsers
Test Execution: Copies your tests to the framework and executes them with configured parameters
Result Analysis: Analyzes test results and provides detailed failure diagnostics
Report Generation: Creates comprehensive reports and copies them to your specified output location
Configuration Options
Test Location: Specify where your Playwright test files are stored
Browser Selection: Choose specific browsers or run tests across all supported browsers
Trace Mode: Enable detailed execution tracing for debugging failed tests
Output Location: Define where test results and reports should be saved
Power Platform Settings: Configure app URLs, names, and Office 365 credentials
How to Use
Add the task to your Azure DevOps pipeline
Configure the required inputs:
testLocation: Path to your Playwright test files
browser: Browser(s) to run tests on (chromium, firefox, webkit, or all)
outputLocation: Directory for test results and reports
appUrl: URL of your Power Platform application
o365Username & o365Password: Authentication credentials for Power Apps
Optional configuration:
trace: Enable tracing for debugging (off, on, retain-on-failure, on-first-retry)