{"id":23861650,"url":"https://github.com/hala-samir/playwright-demoblaze","last_synced_at":"2026-04-16T10:02:39.739Z","repository":{"id":270349829,"uuid":"905229960","full_name":"hala-samir/Playwright-Demoblaze","owner":"hala-samir","description":"Test automation for a web application using Playwright and Java beside leveraging libraries like Faker for realistic data, and integrating CI/CD pipelines with GitHub Actions and Slack notifications.","archived":false,"fork":false,"pushed_at":"2025-02-09T11:13:21.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T12:11:32.420Z","etag":null,"topics":["cicd","crossbrowsertesting","datadriven","docker","docker-compose","dockerization","end-to-end-testing","extent-report","extentreports","faker","githubactions","java","jsonreader","maven","pageobjectmodel","playwright","slack-integration","testautomation","testng"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/hala-samir.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":"2024-12-18T12:14:53.000Z","updated_at":"2025-02-09T11:13:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a7950cb-1551-40ad-bcde-400d748babb9","html_url":"https://github.com/hala-samir/Playwright-Demoblaze","commit_stats":null,"previous_names":["hala-samir/playwright-demoblaze"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hala-samir%2FPlaywright-Demoblaze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hala-samir%2FPlaywright-Demoblaze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hala-samir%2FPlaywright-Demoblaze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hala-samir%2FPlaywright-Demoblaze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hala-samir","download_url":"https://codeload.github.com/hala-samir/Playwright-Demoblaze/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240170102,"owners_count":19759145,"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":["cicd","crossbrowsertesting","datadriven","docker","docker-compose","dockerization","end-to-end-testing","extent-report","extentreports","faker","githubactions","java","jsonreader","maven","pageobjectmodel","playwright","slack-integration","testautomation","testng"],"created_at":"2025-01-03T06:56:29.051Z","updated_at":"2026-04-16T10:02:39.725Z","avatar_url":"https://github.com/hala-samir.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playwright-Demoblaze  [![Playwright Tests](https://github.com/hala-samir/Playwright-Demoblaze/actions/workflows/playwright.yml/badge.svg)](https://github.com/hala-samir/Playwright-Demoblaze/actions/workflows/playwright.yml) [![The scheduled run of the Playwright Tests](https://github.com/hala-samir/Playwright-Demoblaze/actions/workflows/sheduledRun.yml/badge.svg)](https://github.com/hala-samir/Playwright-Demoblaze/actions/workflows/sheduledRun.yml)\nThis project uses Playwright for end-to-end UI automation testing of the Demoblaze e-commerce website.\nIt is built using the Page Object Model (POM) design pattern, integrated with TestNG for test execution and Maven for dependency management.\n\n## Technologies Used\n\n- **Playwright:** A Node.js library for browser automation, supporting multiple browsers.\n- **TestNG:** A testing framework for managing and executing test cases.\n- **Java 17:** The programming language used for scripting.\n- **Maven:** Build automation tool for dependency and lifecycle management.\n- **Docker:** Containerization for isolated test execution.\n- **GitHub Actions:** CI/CD integration for automated test execution.\n- **ExtentReports:** For generating detailed HTML test report.\n- **Faker:** Dynamic data generation for tests.\n\n## Features\n\n- **Playwright for Java:** Ensures reliable and scalable end-to-end UI testing.\n- **Page Object Model (POM):** Modular design for reusable and maintainable test code.\n- **Data-Driven Testing:** Dynamic test execution with parameterized data.\n- **Faker Library:** Generates realistic, randomized test data like names, emails, and passwords to mimic real-world scenarios.\n- **CI/CD Integration:**\n    **GitHub Actions:** Automatically runs tests on pull requests and code pushes to main or master.\n    **Slack Notifications:** Sends test execution results to a dedicated Slack channel.\n\n## Prerequisites\n\nEnsure you have the following installed:\n\n- **Java Development Kit (JDK)** 17 or higher.\n\n```\n java -version\n```\n\n- **Maven** (for dependency management).\n\n```\n mvn -v\n```\n\n- **Docker** (Optional for containerized execution)\n  Install Docker and Docker Compose for running tests in an isolated environment.\n\n## Setup Instructions\n\nFollow these steps to set up and run the project:\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/hala-samir/Playwright-Demoblaze.git\ncd Playwright-Demoblaze\n```\n\n### 2. Run Tests Locally\n\nBuild the project and execute tests:\n```\nmvn clean test\n```\n\n### 3. Run Tests in Docker\n```\ndocker-compose up --build\n```\n\n### 4. View Test Reports\n\nAfter test execution, reports are generated in the target/surefire-reports directory (TestNG Report).\n\nTo view ExtentReports, reports are generated in under ./report.\n\n## Project Structure\n\n```\nPlaywright-Demoblaze/\n├── .github/\n│   ├── workflows/\n│       └── playwright-tests.yml\n├── src/\n│   ├── main/\n│   │   └── java/\n│   │       └── pages/\n│   ├── test/\n│       └── java/\n│           └── tests/\n├── target/\n│   └── surefire-reports/\n├── Dockerfile\n├── docker-compose.yml\n├── pom.xml\n├── README.md\n└── .gitignore\n```\n\n\n##  Continuous Integration with GitHub Actions\n\n* Tests are automatically executed on push and pull_request events for main and master branches. \n* Test results are sent to a Slack channel (#all-testingexecutionresult) via webhook integration.\n\n## Test Reports\n\n* HTML Reports: Generated using ExtentReports and available in the target directory after test execution.\n* Surefire Reports: Located at target/surefire-reports for detailed logs.\n\n## Key Advantages\n* Flexible \u0026 Scalable: Thanks to POM and data-driven testing.\n* Realistic Data: Ensures tests mimic real-world scenarios using the Faker library.\n* Seamless CI/CD: Fully integrated with GitHub Actions and Slack for efficient workflows. The workflows can generate artifacts that include the execution test report.\n\n## Writing and Running Tests\n\n1. **Test Location**:\n\n   - All test classes are located in `src/test/java/tests`.\n2. **Adding a New Test**:\n\n   - Create a new test class under `tests`.\n   - Use Playwright APIs to automate the desired flows.\n\nExample Test Code:\n\n```java\n@Test\npublic void userCanSignUpSuccessfully(){\n   homePage = new HomePage(page);\n   homePage.clickSignUpBtn();\n   homePage.fillUsernameAndPassword();\n   homePage.clickSignUpPopupBtn();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhala-samir%2Fplaywright-demoblaze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhala-samir%2Fplaywright-demoblaze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhala-samir%2Fplaywright-demoblaze/lists"}