{"id":26123211,"url":"https://github.com/indra512/playwrightcucumberjavascript","last_synced_at":"2025-08-16T23:09:58.562Z","repository":{"id":280086550,"uuid":"940948985","full_name":"Indra512/PlaywrightCucumberJavaScript","owner":"Indra512","description":"Playwright Cucumber JavaScript","archived":false,"fork":false,"pushed_at":"2025-03-27T05:54:00.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T06:27:05.379Z","etag":null,"topics":["playwright","playwright-bdd","playwright-cucumber","playwright-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Indra512.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-01T05:44:53.000Z","updated_at":"2025-03-27T05:54:03.000Z","dependencies_parsed_at":"2025-03-19T06:34:51.694Z","dependency_job_id":null,"html_url":"https://github.com/Indra512/PlaywrightCucumberJavaScript","commit_stats":null,"previous_names":["indra512/playwrightcucumberjavascript"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Indra512/PlaywrightCucumberJavaScript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indra512%2FPlaywrightCucumberJavaScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indra512%2FPlaywrightCucumberJavaScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indra512%2FPlaywrightCucumberJavaScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indra512%2FPlaywrightCucumberJavaScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Indra512","download_url":"https://codeload.github.com/Indra512/PlaywrightCucumberJavaScript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indra512%2FPlaywrightCucumberJavaScript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270781393,"owners_count":24643820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["playwright","playwright-bdd","playwright-cucumber","playwright-javascript"],"created_at":"2025-03-10T15:45:56.412Z","updated_at":"2025-08-16T23:09:58.537Z","avatar_url":"https://github.com/Indra512.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playwright + Cucumber + JavaScript Test Automation Framework\n\n## Overview\nThis framework is built using **Playwright**, **Cucumber**, and **JavaScript** to provide a robust and scalable solution for end-to-end test automation. It supports **parallel execution**, **retry mechanism**, **logging**, and **multi-environment test execution**.\n\n### Key Features\n- **Playwright**: Ensures fast and reliable browser automation.\n- **Cucumber**: Enables behavior-driven development (BDD) with readable test scenarios.\n- **JavaScript**: Provides a dynamic and widely adopted programming language for automation.\n- **Reporting**: Generates Cucumber reports with screenshots and videos attached for failed tests.\n- **Logging**: Uses Winston for structured logging.\n- **Environment Management**: Supports running tests in multiple environments.\n- **Retry Mechanism**: Retries failed tests automatically.\n\n---\n\n## Tech Stack\n### 1. Playwright\n[Playwright](https://playwright.dev/) is a modern automation library that supports multiple browsers (Chromium, Firefox, WebKit) and provides robust testing capabilities.\n\n### 2. Cucumber\n[Cucumber](https://cucumber.io/) allows writing test scenarios in Gherkin syntax, making them easy to understand and maintain.\n\n### 3. JavaScript\nJavaScript is a widely used scripting language for web automation and is supported by modern test frameworks.\n\n---\n\n## Dependencies\nThis framework utilizes the following dependencies:\n\n```json\n\"dependencies\": {\n  \"@cucumber/cucumber\": \"^11.2.0\",\n  \"@playwright/test\": \"^1.50.1\",\n  \"cross-env\": \"^7.0.3\",\n  \"dotenv\": \"^16.4.7\",\n  \"fs-extra\": \"^11.3.0\",\n  \"winston\": \"^3.17.0\"\n}\n```\n\n- **@cucumber/cucumber**: Cucumber framework for BDD testing.\n- **@playwright/test**: Playwright testing library.\n- **cross-env**: Enables setting environment variables across platforms.\n- **dotenv**: Loads environment variables from `.env` files.\n- **fs-extra**: Provides additional filesystem utilities.\n- **winston**: A powerful logging library for better debugging.\n\n---\n\n## Project Structure\n* src -\u003e Contains all the features \u0026 Typescript code\n* test-results -\u003e Contains all the reports related file\n---\n\n## Running Tests\nTo execute the tests, use the following command:\n\n```sh\nnpm test run\n```\n\nThis command will:\n- Run Playwright tests using Cucumber.\n- Capture screenshots and videos for failures.\n- Generate reports after execution.\n\n### Running Tests in Parallel\nThe framework is designed to support parallel execution, improving test efficiency.\n\n### Retry Mechanism\nIf a test fails, it will automatically retry based on the configured retry settings.\n\n### Running Tests in Different Environments\nYou can configure multiple environments using `.env` files and switch between them using `cross-env`.\n\n---\n\n## Reporting\nThis framework utilizes the **default Cucumber report**, which includes:\n- Detailed step execution results.\n- Screenshots and videos attached for failures.\n\n---\n\n## Logging\nLogging is implemented using **Winston**, which provides structured logs to help debug test failures effectively.\n\n---\n\n## Final Thoughts\nThis framework provides a strong foundation for **scalable and maintainable** test automation using modern tools and best practices. With **parallel execution, retry mechanisms, and multi-environment support**, it ensures reliability and efficiency in automated testing.\n\nFeel free to contribute, enhance, or modify this framework as needed!\n\nHappy Testing! 🚀\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findra512%2Fplaywrightcucumberjavascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findra512%2Fplaywrightcucumberjavascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findra512%2Fplaywrightcucumberjavascript/lists"}