{"id":19514921,"url":"https://github.com/swatinerkar/selenium-testng-demo-project","last_synced_at":"2026-06-19T08:32:24.067Z","repository":{"id":211623367,"uuid":"351157127","full_name":"swatinerkar/selenium-testng-demo-project","owner":"swatinerkar","description":"Selenium Automation Framework using testNg and pageFactory","archived":false,"fork":false,"pushed_at":"2023-12-27T15:41:07.000Z","size":1430,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T04:23:53.260Z","etag":null,"topics":["extent-report","page-object-model","pagefactory","selenium-java","selenium-webdriver","singleton-pattern","test-automation","test-framework","testng-framework"],"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/swatinerkar.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":"2021-03-24T16:53:17.000Z","updated_at":"2025-05-26T15:49:48.000Z","dependencies_parsed_at":"2024-11-10T23:38:06.439Z","dependency_job_id":"536f528f-8865-487f-b1d8-22750f9c8c72","html_url":"https://github.com/swatinerkar/selenium-testng-demo-project","commit_stats":null,"previous_names":["swatinerkar/selenium-testng-demo-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swatinerkar/selenium-testng-demo-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swatinerkar%2Fselenium-testng-demo-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swatinerkar%2Fselenium-testng-demo-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swatinerkar%2Fselenium-testng-demo-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swatinerkar%2Fselenium-testng-demo-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swatinerkar","download_url":"https://codeload.github.com/swatinerkar/selenium-testng-demo-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swatinerkar%2Fselenium-testng-demo-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34523982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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":["extent-report","page-object-model","pagefactory","selenium-java","selenium-webdriver","singleton-pattern","test-automation","test-framework","testng-framework"],"created_at":"2024-11-10T23:38:02.111Z","updated_at":"2026-06-19T08:32:24.030Z","avatar_url":"https://github.com/swatinerkar.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Selenium Automation Project\n\nWelcome to the Selenium Automation Demo Project! This project serves as hands-on demonstration of Selenium, an open-source automation testing framework widely used for web applications. Whether you're a beginner looking to explore the basics or an experienced tester aiming to enhance your Selenium skills, this project provides a practical guide to automation testing.\n##### Application under test: https://www.saucedemo.com/ website.\n\n\n\n## Index\n - [Project Demonstates](#project-demonstates)\n - [Tech Stack](#tech-stack) \n - [Project Folder Structure](#project-folder-structure) \n - [Framework](#framework)\n - [Project Setup](#project-setup)\n - [Run Locally](#run-locally)\n - [Execution Report](#execution-report)\n - [About Me](#about-me)\n\n\n## Project Demonstates\n\n- The execution of test cases on multiple browsers.\n- Use of testng framework\n- Achieve Page Object Model design pattern using pageFactory\n- Maven project\n- Sington design pattern implementation\n- Reading data in multiple ways\n    - via .properties file\n    - from @DataProvider method\n    - from \u003cparameter\u003e added in testng.xml\n- Running test cases \n    - single test class\n    - multiple test classes by added under testng.xml\n    - using maven surefire plugin\n- Integration of Listerners provided by testng\n- Integration of Logger\n- Execution report using Extent Report\n\n\n\n## Tech Stack\n\n**Language:** Java 17\n\n**UI Automation library:** Selenium (4.11.0)\n\n**Testing framework library:** testNg (7.8.0)\n\n**Page object repository:** PageFactory\n\n**Automation Framework:** Hybrid\n\n**Project Building Tool:** Maven 3.8.0\n\n**Reporting:** Extent Report (5.1.1)\n\n**Test data/Configuration data:** .properties file\n\n**Assertion framework:** hamcrest-all (1.3)\n\n**Logger:** slf4j-api with slf4j-simple as binder\n\n**Listerner:** testNg Listerners\n\n## Project Folder Structure\n It has 3 source folders\n\n    1. src/main/java - contains all code except test cases\n    2. src/test/java - contains test case classes\n    3. src/test/resource - contails configurations, test data related files\n\nHere is a screenshot:\n\n![Folder Structure](https://github.com/swatinerkar/selenium-testng-demo-project/blob/develop/images/Selenium-Project-Folder-Structure.png)\n## Framework\n\nUsed testNg and POM results in hybrid Framework\nIt has following components:\n\n    1. Test Base\n    2. Page Object Repository\n    3. Test Cases\n    4. Test Data\n    5. Configurations\n    6. Utilities\n    7. Report\n\nHere is a framework flow diagram\n\n![Framework Flow Diagram](https://github.com/swatinerkar/selenium-testng-demo-project/blob/develop/images/Framework-flowdiagram.png)\n\n## Project Setup\nTo run the test scenarios, need to have followings on your machine:\n    \n    1. Java 17\n    2. Maven 3.8.5\n    3. Any IDE (Eclipse/IntelliJ)\n## Run Locally\n\n- Clone the project\n\n  Go to the folder location where you want to keep local copy of the project\n\n```bash\n  git clone https://github.com/swatinerkar/selenium-testng-demo-project\n```\n\n- Import the project as Maven project in any IDE (Eclipse/IntelliJ)\n\n- #### To run complete suite via testng.xml\n  - right click on testng.xml\n  - Run as -\u003e TestNG suite\n\n  ![testng.xml](https://github.com/swatinerkar/selenium-testng-demo-project/blob/main/images/Sample_Run_Via_testng.xml%20File.png)\n\n\n- #### To run complete suite via maven\n  - Right click on POM.xml file\n  - Run as -\u003e Maven test\n\n  ![POM.xml](https://github.com/swatinerkar/selenium-testng-demo-project/blob/main/images/Sample_Run_Via_pom.xml%20file.png)\n\n- #### To run via Run configuration\n  - Go to Run on Toolbar\n  - Run configuration\n  - Select workplace, and add goals as 'test'\n  - Click Apply and Run\n\n  ![Run Configurations](https://github.com/swatinerkar/selenium-testng-demo-project/blob/main/images/Sample_Run_Via_Run%20Configurations.png)\n\n\n\n\n\n\n## Execution Report\n- Once the Execution is done, the report is available under Reports folder\n- If any test case fails, it will take the screen shot and attach it to the execution report.\n\n  #### Report folder\n  \n  ![Report Folder](https://github.com/swatinerkar/selenium-testng-demo-project/blob/main/images/Sample_Reports_Folder.png)\n\n  #### Execution Report\n\n  ![Execution Report](https://github.com/swatinerkar/selenium-testng-demo-project/blob/main/images/Sample_Failure_Execution_Report.png)\n\n  #### Failure Screenshot\n\n  ![Failure Screenshot](https://github.com/swatinerkar/selenium-testng-demo-project/blob/main/images/Sample_Attached_Failure_Screenshot.png)\n\n## 🚀 About Me\n\nI'm a Software Automation Tester, having 11+ years of experience.\n\nPlease have a look on my Portfolio: [@swatinerkar](https://swatinerkar.wordpress.com/)\n\nMy LinkedIn Profile: [@swatinerkar](https://www.linkedin.com/in/swatinerkar/)\n\nIf you would like to have some guidence, you can book any of my service: [@swatinerkar](https://topmate.io/swati_nerkar)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswatinerkar%2Fselenium-testng-demo-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswatinerkar%2Fselenium-testng-demo-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswatinerkar%2Fselenium-testng-demo-project/lists"}