{"id":24495163,"url":"https://github.com/basil-hameed/saucepom","last_synced_at":"2025-03-15T04:43:00.854Z","repository":{"id":262093863,"uuid":"886200786","full_name":"basil-hameed/SaucePOM","owner":"basil-hameed","description":"Automation Project - Sauce Labs ","archived":false,"fork":false,"pushed_at":"2024-11-12T09:38:42.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T20:19:06.748Z","etag":null,"topics":["datadriventesting","page-object-model","pytest","pytest-html","python"],"latest_commit_sha":null,"homepage":"https://www.saucedemo.com/v1/","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/basil-hameed.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-11-10T13:20:49.000Z","updated_at":"2024-11-12T09:38:47.000Z","dependencies_parsed_at":"2024-11-10T14:25:17.974Z","dependency_job_id":"4200b8af-acb3-4cb2-9523-a3a0ee091a2d","html_url":"https://github.com/basil-hameed/SaucePOM","commit_stats":null,"previous_names":["basil-hameed/saucepom"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basil-hameed%2FSaucePOM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basil-hameed%2FSaucePOM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basil-hameed%2FSaucePOM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basil-hameed%2FSaucePOM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basil-hameed","download_url":"https://codeload.github.com/basil-hameed/SaucePOM/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685526,"owners_count":20330980,"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":["datadriventesting","page-object-model","pytest","pytest-html","python"],"created_at":"2025-01-21T20:19:05.825Z","updated_at":"2025-03-15T04:43:00.837Z","avatar_url":"https://github.com/basil-hameed.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SaucePOM\n\nWebsite Link: https://www.saucedemo.com/v1/\n\n## Test Objective\nLaunching sauce demo website and testing start automation, login functionality and shutdown using pytest framework with a page object model POM Pattern. \nHere's a professional `README.md` template for the GitHub repository of a project titled **\"E-Commerce Site using pytest and Selenium\"**.\n\n---\n\n# E-Commerce Site using pytest and Selenium\n\n## Project Overview\n\nThis project is a test automation suite for an e-commerce website, developed using `pytest` and `Selenium`. The main objective is to automate functional testing for various critical flows in an e-commerce application, such as user authentication, product search, adding items to cart, and checkout. By using `pytest` and `Selenium`, the suite ensures that the site operates as expected and offers a seamless experience to users.\n\n## Table of Contents\n\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Setup and Installation](#setup-and-installation)\n- [Running Tests](#running-tests)\n- [Project Structure](#project-structure)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n- **Automated Login Tests**: Verifies user login functionality, including positive and negative scenarios.\n- **Product Search Tests**: Ensures accurate search functionality and proper display of search results.\n- **Add to Cart and Checkout Tests**: Checks the add-to-cart functionality and ensures the checkout process is smooth and bug-free.\n- **Responsive Testing**: Ensures that key functionalities work well across various screen sizes (desktop, tablet, mobile).\n\n## Tech Stack\n\n- **Programming Language**: Python\n- **Test Framework**: pytest\n- **Automation Tool**: Selenium WebDriver\n- **Reporting**: pytest-html\n- **Browser Compatibility**: Chrome, Firefox, and optionally, Edge\n- **CI/CD Integration**: GitHub Actions\n\n## Setup and Installation\n\nTo set up and run this project locally, follow these steps:\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/username/ecommerce-site-pytest-selenium.git\n   cd ecommerce-site-pytest-selenium\n   ```\n\n2. **Create a Virtual Environment** (optional but recommended):\n   ```bash\n   python3 -m venv env\n   source env/bin/activate  # For Windows, use `env\\Scripts\\activate`\n   ```\n\n3. **Install Dependencies**:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Set Up Environment Variables**:\n   - Create a `.env` file in the root directory to store sensitive information such as login credentials and URLs. Example:\n     ```\n     BASE_URL=https://example.com\n     USER_EMAIL=test@example.com\n     USER_PASSWORD=yourpassword\n     ```\n\n## Running Tests\n\nTo execute tests, use the following commands:\n\n1. **Run All Tests**:\n   ```bash\n   pytest\n   ```\n\n2. **Generate HTML Report**:\n   ```bash\n   pytest --html=report.html\n   ```\n\n3. **Run Tests by Marker** (e.g., only \"login\" tests):\n   ```bash\n   pytest -m login\n   ```\n\n4. **Headless Browser Execution**:\n   - You can set up tests to run in headless mode by configuring the `pytest.ini` file or directly in your test script.\n\n## Project Structure\n\n```\necommerce-site-pytest-selenium/\n├── tests/                     # All test cases\n│   ├── test_login.py          # Login tests\n│   ├── test_search.py         # Product search tests\n│   ├── test_cart.py           # Add to cart and checkout tests\n├── pages/                     # Page Object Models for each page\n│   ├── login_page.py\n│   ├── search_page.py\n│   ├── cart_page.py\n├── utils/                     # Utility scripts\n│   ├── config.py              # Configuration management\n│   ├── helpers.py             # Helper functions\n├── .env                       # Environment variables\n├── pytest.ini                 # pytest configuration\n├── requirements.txt           # Project dependencies\n└── README.md                  # Project documentation\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasil-hameed%2Fsaucepom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasil-hameed%2Fsaucepom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasil-hameed%2Fsaucepom/lists"}