{"id":25506337,"url":"https://github.com/tejpat98/saucedemo-automated-testing","last_synced_at":"2026-05-01T18:32:11.129Z","repository":{"id":278273081,"uuid":"935080924","full_name":"tejpat98/saucedemo-automated-testing","owner":"tejpat98","description":"Automated tests of saucsedemo.com using Selenium and TestNG. ","archived":false,"fork":false,"pushed_at":"2025-02-18T22:23:20.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T00:38:57.137Z","etag":null,"topics":["java","selenium","testng","webdrivermanager"],"latest_commit_sha":null,"homepage":"","language":"Java","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/tejpat98.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,"zenodo":null}},"created_at":"2025-02-18T21:49:31.000Z","updated_at":"2025-02-18T22:23:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc00e2bf-679d-4cca-8475-51222d9ff569","html_url":"https://github.com/tejpat98/saucedemo-automated-testing","commit_stats":null,"previous_names":["tejpat98/saucedemo-automated-testing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tejpat98/saucedemo-automated-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejpat98%2Fsaucedemo-automated-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejpat98%2Fsaucedemo-automated-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejpat98%2Fsaucedemo-automated-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejpat98%2Fsaucedemo-automated-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tejpat98","download_url":"https://codeload.github.com/tejpat98/saucedemo-automated-testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejpat98%2Fsaucedemo-automated-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32508900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["java","selenium","testng","webdrivermanager"],"created_at":"2025-02-19T06:30:20.969Z","updated_at":"2026-05-01T18:32:11.078Z","avatar_url":"https://github.com/tejpat98.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SauceDemoTesting\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Page Object Model (POM) Implementation](#page-object-model-pom-implementation)\n\n## Introduction\n\nSauceDemoTesting is a project to create an automated test suite using Java, Selenium WebDriver, and TestNG to validate core functionalities of an demo e-commerce website.\n\n![2SXnjuKyfM](https://github.com/user-attachments/assets/b7edcb47-723d-4187-b3e7-59c256ee18f7)\n\nDemo E-Commerce Website: https://www.saucedemo.com/\n(SauceDemo is a publicly accessible site for testing automation tools.)\n\n- Automated test scripts using Selenium WebDriver.\n- Structure tests using TestNG (annotations like @Test, @BeforeMethod, @AfterMethod).\n- Use **Page Object Model** (POM) to improve maintainability.\n\nTests covering:\n\n- Logging in / out\n- Viewing Products catelog / product details\n- Shopping cart functionality\n- Checkout process\n\nhttps://github.com/user-attachments/assets/aca2a299-415f-4f20-b397-889f2aaeca5c\n\n## Installation\n\nTo get started with SauceDemoTesting, follow these steps:\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/tejpat98/saucedemotesting.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd saucedemotesting\n   ```\n3. Install the required dependencies:\n   ```bash\n   mvn install\n   ```\n\n## Usage\n\nTo run the tests, use the following command:\n\n```bash\nmvn test\n```\n\nThis will execute all the test scripts and generate a report of the test results.\n\n## Page Object Model (POM) Implementation\n\nThe Page Object Model (POM) is a design pattern that helps create an object repository for web UI elements. It improves test maintenance and reduces code duplication. Below is an example of how POM is implemented in the `LoginTest` and `LoginPage` classes.\n\n#### LoginPage.java\n\nThe `LoginPage` class represents the login page of the SauceDemo website. It contains web elements and methods to interact with those elements.\n\n#### LoginTest.java\n\nThe `LoginTest` class contains test methods to validate the login functionality of the SauceDemo website. It uses the `LoginPage` class to interact with the login page.\n\nIn this example, the `LoginPage` class encapsulates the elements and actions related to the login page, while the `LoginTest` class contains the test logic. This separation of concerns makes the code more maintainable and reusable.\n\n#### LogoutTest.java\n\nThe `LogoutTest` class also uses `LoginPage`, to first login so that logout functionalities can be tested. Reducing the amount of duplicate code that gets written.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftejpat98%2Fsaucedemo-automated-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftejpat98%2Fsaucedemo-automated-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftejpat98%2Fsaucedemo-automated-testing/lists"}