Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kwishna/playwright-runner-with-cucumber
Using playwright with test runner and cucumber integration
https://github.com/kwishna/playwright-runner-with-cucumber
allure-report cucumber-js playwright-typescript test-automation ui-testing
Last synced: 8 days ago
JSON representation
Using playwright with test runner and cucumber integration
- Host: GitHub
- URL: https://github.com/kwishna/playwright-runner-with-cucumber
- Owner: kwishna
- Created: 2024-07-23T21:56:39.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T15:30:11.000Z (5 months ago)
- Last Synced: 2024-11-07T16:17:28.094Z (about 2 months ago)
- Topics: allure-report, cucumber-js, playwright-typescript, test-automation, ui-testing
- Language: TypeScript
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Playwright BDD Test
A UI automation using Playwright Test Runner intergrated with BDD Cucumber.js.
## Features
- BDD-style testing with Cucumber.js integration
- Multiple test projects: smoke, regression
- Parallel test execution
- Comprehensive reporting (HTML, JUnit, JSON, Allure)
- Environment-specific configurations
- Cross-browser testing support
- Screenshot and video capture on failure
- Trace collection for debugging## Setup
1. Clone the repository
2. Install dependencies: `npm install`## Running Tests
- Run all tests: `npm run pw:test`
- Run smoke tests: `npm run pw:smoke`
- Run failed tests: `npm run pw:failed`
- Run tests with specific tags:
- AND condition: `npm run pw:grep:and`
- OR condition: `npm run pw:grep:or`
- Single tag: `npm run pw:grep`## Reporting
Generate and view test reports:
- `npm run pw:report`## Configuration
- `playwright.config.ts`: Main configuration file
- `.env`: Environment variables (create this file locally)## Project Structure
- `src/`: Test files using BDD cucumber.js
- `test/`: Test files without BDD cucumber.js
- `smoke/`: Smoke tests
- `regression/`: Regression tests
- `playwright-report/`: Test reports
- `snapshots/`: Screenshot comparisons## Dependencies
- Playwright
- Cucumber.js (via playwright-bdd)
- Allure reportingFor more details, refer to `package.json` and `playwright.config.ts`.