Problem Statement
A company that provides an online platform to connect businesses and drives for same-day and on-demand last-mile delivery wanted to automate the test cases for Production and other environment runs using a test automation tool that could be driven using Microsoft tools. The solution provided was to create and provide a framework using Microsoft Playwright and C sharp dotnet solution with design patterns used to provide efficient and flexible test automation framework.
Solution Overview
The solution provided was to create and provide a framework using Microsoft Playwright and C sharp dotnet solution with design patterns used to provide efficient and flexible test automation framework.
- Test scripts were written in C# programming language to drive Playwright Tests with Nunit Test Framework to drive test execution.
- These scripts written to drive playwright to run browser-based tests efficiently and quicker.
- Playwright works with Browser Engine (Chromium, Firefox, Web Kit) and eliminates dependency to work with browser and version specific drivers released by leading Browser development companies.
- The Playwright scripts can produce various outputs, such as screenshots, videos, logs, or test results for detailed execution analysis. These outputs can be used for debugging, reporting, or analysis purposes.
- Framework and Playwright components allows to seamlessly integrate with any CI/CD tool.
Benefits Delivered
The framework allowed for quicker and efficient test execution generating efficient, reliable results and reporting thereby facilitating the time to move product features into production to benefit the operations and business.