Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sirajvind/playwright-automation
Automated UI & API testing suite using Playwright for end-to-end testing.
https://github.com/sirajvind/playwright-automation
api-tests automation-testing playwright ui-tests
Last synced: about 1 month ago
JSON representation
Automated UI & API testing suite using Playwright for end-to-end testing.
- Host: GitHub
- URL: https://github.com/sirajvind/playwright-automation
- Owner: sirajvind
- License: mit
- Created: 2024-12-01T05:48:47.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-04T17:05:15.000Z (about 2 months ago)
- Last Synced: 2024-12-15T00:04:37.988Z (about 2 months ago)
- Topics: api-tests, automation-testing, playwright, ui-tests
- Language: TypeScript
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Playwright Automation
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.### Key Benefits:
- **Cross-Browser Testing**: Write tests that run on different browsers to ensure compatibility and performance.
- **End-to-End Testing**: Validate the entire workflow of your application, from the user interface to backend services.
- **UI Testing**: Automate interactions with your application's user interface to verify that it behaves as expected.
- **API Testing**: Test your backend APIs to ensure they return the correct responses and handle edge cases.
- **Headless Testing**: Execute tests in a headless browser mode for faster performance and integration into CI/CD pipelines.
- **Debugging Tools**: Utilize Playwright's powerful debugging tools to troubleshoot and resolve issues quickly.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.
## Table of Contents
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)## Features
- **End-to-End Testing**: Test your entire application from start to finish.
- **UI Testing**: Ensure your user interface works as expected.
- **API Testing**: Validate your backend services.
- **Headless Testing**: Run tests in a headless browser for faster execution.
- **Debugging**: Easily debug your tests with Playwright's built-in tools.## Installation
To get started with this project, clone the repository and install the dependencies:
```bash
git clone https://github.com/yourusername/playwright-automation.git
cd playwright-automation
```
```bash
npm install
```> **Note:** Make sure you have [Node.js](https://nodejs.org/) and `npm` installed on your machine before running the above command.
## Usage
You can run the tests using the following commands:
Run All Tests
```bash
npm test
```Run Tests with UI
```bash
npm run test:ui
```Run Tests in Headed Mode
```bash
npm run test:head
```Debug Tests
```bash
npm run test:debug
```Generate Code
```bash
npm run test:codegen
```## License
This project is licensed under the ISC License. See the [LICENSE](LICENSE) file for more details.