|
1 | | -# playwright-automation |
2 | | -Automated UI & API testing suite using Playwright for end-to-end testing. |
| 1 | +<p align="center"> |
| 2 | + <img src="https://playwright.dev/img/playwright-logo.svg" alt="Playwright Logo" width="200"/> |
| 3 | +</p> |
| 4 | + |
| 5 | + |
| 6 | +# Playwright Automation |
| 7 | +This project is an automated UI and API testing suite that utilizes [Playwright](https://playwright.dev/) for comprehensive end-to-end testing. Playwright is a robust framework that supports testing across multiple browsers, including Chromium, Firefox, and WebKit. With Playwright, you can ensure that your web applications perform consistently and reliably across different environments. |
| 8 | + |
| 9 | +### Key Benefits: |
| 10 | + |
| 11 | +- **Cross-Browser Testing**: Write tests that run on different browsers to ensure compatibility and performance. |
| 12 | +- **End-to-End Testing**: Validate the entire workflow of your application, from the user interface to backend services. |
| 13 | +- **UI Testing**: Automate interactions with your application's user interface to verify that it behaves as expected. |
| 14 | +- **API Testing**: Test your backend APIs to ensure they return the correct responses and handle edge cases. |
| 15 | +- **Headless Testing**: Execute tests in a headless browser mode for faster performance and integration into CI/CD pipelines. |
| 16 | +- **Debugging Tools**: Utilize Playwright's powerful debugging tools to troubleshoot and resolve issues quickly. |
| 17 | + |
| 18 | +By integrating Playwright into your testing strategy, you can achieve higher test coverage, reduce manual testing efforts, and deliver a more reliable product to your users. |
| 19 | + |
| 20 | +## Table of Contents |
| 21 | + |
| 22 | +- [Features](#features) |
| 23 | +- [Installation](#installation) |
| 24 | +- [Usage](#usage) |
| 25 | +- [License](#license) |
| 26 | + |
| 27 | +## Features |
| 28 | + |
| 29 | +- **End-to-End Testing**: Test your entire application from start to finish. |
| 30 | +- **UI Testing**: Ensure your user interface works as expected. |
| 31 | +- **API Testing**: Validate your backend services. |
| 32 | +- **Headless Testing**: Run tests in a headless browser for faster execution. |
| 33 | +- **Debugging**: Easily debug your tests with Playwright's built-in tools. |
| 34 | + |
| 35 | +## Installation |
| 36 | + |
| 37 | +To get started with this project, clone the repository and install the dependencies: |
| 38 | + |
| 39 | +```bash |
| 40 | +git clone https://github.com/yourusername/playwright-automation.git |
| 41 | +cd playwright-automation |
| 42 | +``` |
| 43 | +```bash |
| 44 | +npm install |
| 45 | +``` |
| 46 | + |
| 47 | +> **Note:** Make sure you have [Node.js](https://nodejs.org/) and `npm` installed on your machine before running the above command. |
| 48 | +
|
| 49 | +## Usage |
| 50 | + |
| 51 | +You can run the tests using the following commands: |
| 52 | + |
| 53 | +Run All Tests |
| 54 | + |
| 55 | +```bash |
| 56 | +npm test |
| 57 | +``` |
| 58 | + |
| 59 | +Run Tests with UI |
| 60 | + |
| 61 | +```bash |
| 62 | +npm run test:ui |
| 63 | +``` |
| 64 | + |
| 65 | +Run Tests in Headed Mode |
| 66 | + |
| 67 | +```bash |
| 68 | +npm run test:head |
| 69 | +``` |
| 70 | + |
| 71 | +Debug Tests |
| 72 | + |
| 73 | +```bash |
| 74 | +npm run test:debug |
| 75 | +``` |
| 76 | + |
| 77 | +Generate Code |
| 78 | + |
| 79 | +```bash |
| 80 | +npm run test:codegen |
| 81 | +``` |
| 82 | + |
| 83 | +## License |
| 84 | + |
| 85 | +This project is licensed under the ISC License. See the [LICENSE](LICENSE) file for more details. |
0 commit comments