{"id":16992166,"url":"https://github.com/akshayp7/playwright-java-cucumber","last_synced_at":"2025-04-12T03:31:07.948Z","repository":{"id":146856913,"uuid":"618251091","full_name":"akshayp7/playwright-java-cucumber","owner":"akshayp7","description":"This is Boilerplate/Template for Playwright with Cucumber Java and JUnit for Assertions with Spark Extent reporting for HTML and PDF","archived":false,"fork":false,"pushed_at":"2023-05-12T06:11:13.000Z","size":394,"stargazers_count":37,"open_issues_count":0,"forks_count":21,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-25T23:22:13.928Z","etag":null,"topics":["cucumber","extentreports","java","junit","playwright"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akshayp7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-03-24T04:05:07.000Z","updated_at":"2025-02-28T08:33:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee288b6f-a529-4123-b89a-e812e017f3b2","html_url":"https://github.com/akshayp7/playwright-java-cucumber","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayp7%2Fplaywright-java-cucumber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayp7%2Fplaywright-java-cucumber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayp7%2Fplaywright-java-cucumber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayp7%2Fplaywright-java-cucumber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akshayp7","download_url":"https://codeload.github.com/akshayp7/playwright-java-cucumber/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248512537,"owners_count":21116619,"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","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":["cucumber","extentreports","java","junit","playwright"],"created_at":"2024-10-14T03:28:26.657Z","updated_at":"2025-04-12T03:31:07.942Z","avatar_url":"https://github.com/akshayp7.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- TABLE OF CONTENTS --\u003e\n\u003ch2\u003e\n    \u003cdetails open=\"open\"\u003e\n        \u003csummary class=\"normal\"\u003eTable of Contents\u003c/summary\u003e\n        \u003ch5\u003e\n          \u003col\u003e\n            \u003cli\u003e\n              \u003ca href=\"#about-the-project\"\u003eAbout the Project\u003c/a\u003e\n              \u003cul\u003e\n                \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\n              \u003c/ul\u003e\n            \u003c/li\u003e\n            \u003cli\u003e\n              \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n              \u003cul\u003e\n                \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\n                \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\n              \u003c/ul\u003e\n            \u003c/li\u003e\n            \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ca href=\"#reports\"\u003eReports\u003c/a\u003e\u003c/li\u003e\n          \u003c/ol\u003e\n        \u003c/h5\u003e    \n    \u003c/details\u003e\n\u003c/h2\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n\n## About the Project\n\nPlaywright Demo - This project is based on Microsoft Playwright which enables reliable end-to-end testing for modern web\napps.\n\nTop Features:\n\n- Easy to Configure.\n- Auto-waits for all the relevant checks to pass and only then performs the requested action.\n- Records the test script and every action on the target page is turned into generated script.\n- Generates trace file on failure, which gives in-depth details of Test Case execution.\n- Execution of test case is faster when compared with other competitive framework in market.\n- Supports Headful/Headless mode execution for Firefox/Webkit/Google Chrome/Chromium/MS Edge on Windows/Linux/Mac\n  machines.\n- Rerun Failed Test cases\n- Supports 'download' event monitoring, so there is no need for user to actually wait for downloads to finish.\n- Supports Serial and Parallel execution.\n- Spark PDF/HTML Reports are generated after execution with an option to capture screenshot/video/trace file on failure.\n- Nonetheless Support from Microsoft so FREQUENT RELEASES and turn around time for any queries is 48 hours.\n\n### Built With\n\n- [Playwright](https://playwright.dev)\n- [Cucumber](https://cucumber.io/)\n- [JUnit](https://junit.org/junit5/)\n- [Maven](https://maven.apache.org/)\n- [OpenJDK](https://www.openlogic.com/openjdk-downloads)\n\n## Getting Started\n\n### Prerequisites\n\nThe following software are required:\n\n- java : Download and Install java 1.8\n  ```sh\n  https://www.openlogic.com/openjdk-downloads\n  ```\n- Maven must be configured\n\n### Installation\n\n1. Clone the repo using below URL\n\n```sh\nhttps://github.com/akshayp7/playwright-typescipt-playwright-test.git\n```\n\n2. Navigate to folder and install dependencies using:\n\n```sh\nmvn clean install\n```\n\n\u003c!-- USAGE EXAMPLES--\u003e\n\n## Usage\n\n1. For Browser Configuration, change required value in browser and headless mode in `src/test/resources/config/config.properties`.\n2. For executing test cases in parallel, navigate to pom.xml and in plugin in configuration section\n   provide `\u003cskipTests\u003efalse\u003c/skipTests\u003e`\n   Now if you want to run 4 features in parallel provide `\u003cthreadCount\u003e4\u003c/threadCount\u003e` in maven-failsafe-plugin section\n   in pom.xml and execute below command\n```JS\nmvn verify\n```\n3. For executing test cases in sequence, provide a suitable tag `@smoke` at the start of your scenario and execute below\n   command:\n```JS\nmvn test \"-Dcucumber. options=--tags @smoke\"\n```\n4. For recording test scripts execute below command with desired url:\n```JS\nmvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args=\"codegen https://demoqa.com/\"\n```\n5. For HTML Report configuration navigate to `src/test/resources/extent.properties` and provide destination folder as\n   value in `extent.reporter.spark.out`\n6. For PDF Report configuration navigate to `src/test/resources/extent.properties` and provide destination folder as\n   value in `extent.reporter.pdf.out`\n7. Screenshots and Trace files will be generated in target folder on failure this configuration is provided\n   in `src/test/java/hooks/Hooks.java` in `takeScreenshotAndTrace` method.\n8. To change your username go to `src/test/resources/config/config.properties` and provide value against `adminUsername`\n9. To change password, go to `src/main/java/utils/WebActions.java` in `encrypt()` and\n   replace `yourPassword` with your password, execute the test case, Encrypted password will be printed on your\n   console .\n   Copy Encrypted password in `src/test/resources/config/config.properties` against `adminPassword` field.\n10. You can even execute test cases by running `src/test/java/testrunner/TestRunner.java` file all the failed test cases\n    are saved in `target/rerun.txt`\n11. For rerunning failed test cases run `src/test/java/testrunner/ReRunner.java`\n12. Reports will be generated in `target/HTMLReport` and `target/PdfReport` folders.\n\n## Reports\n\n- \u003cb\u003eOverall Report\u003c/b\u003e\n  ![Overall Report Screenshot][overall-report-screenshot]\n\n- \u003cb\u003eFailure Report\u003c/b\u003e\n  ![Failure Report Screenshot][failure-report-screenshot]\n\n- \u003cb\u003ePDF Report\u003c/b\u003e\n  ![PDF Report Screenshot][pdf-report-screenshot]\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\n[overall-report-screenshot]: ReadMeImages/OverallReport.PNG\n\n[failure-report-screenshot]: ReadMeImages/FailureReport.PNG\n\n[pdf-report-screenshot]: ReadMeImages/PDFReport.PNG","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshayp7%2Fplaywright-java-cucumber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakshayp7%2Fplaywright-java-cucumber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshayp7%2Fplaywright-java-cucumber/lists"}