{"id":23296677,"url":"https://github.com/imranc07/mini_project_1","last_synced_at":"2025-06-16T00:10:55.768Z","repository":{"id":267747027,"uuid":"902216301","full_name":"imranc07/Mini_Project_1","owner":"imranc07","description":"This project implements a Page Object Model (POM) structure for automated testing of the GUVI web application.","archived":false,"fork":false,"pushed_at":"2024-12-13T06:12:24.000Z","size":13185,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T19:51:07.819Z","etag":null,"topics":["automation-testing","exception-handling","inheritance","negative-testing","object-oriented-programming","page-object-model","positive-testing","pytest","pytest-html","python","python-selenium","selenium-waits","selenium-webdriver-python"],"latest_commit_sha":null,"homepage":"https://www.guvi.in/","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/imranc07.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-12T06:17:10.000Z","updated_at":"2024-12-13T06:12:27.000Z","dependencies_parsed_at":"2025-02-13T01:50:47.253Z","dependency_job_id":"272cff7b-941b-4d59-aab3-1a6f0687c9a4","html_url":"https://github.com/imranc07/Mini_Project_1","commit_stats":null,"previous_names":["imranc07/mini_project_1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imranc07/Mini_Project_1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranc07%2FMini_Project_1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranc07%2FMini_Project_1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranc07%2FMini_Project_1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranc07%2FMini_Project_1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imranc07","download_url":"https://codeload.github.com/imranc07/Mini_Project_1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranc07%2FMini_Project_1/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260072819,"owners_count":22954926,"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":["automation-testing","exception-handling","inheritance","negative-testing","object-oriented-programming","page-object-model","positive-testing","pytest","pytest-html","python","python-selenium","selenium-waits","selenium-webdriver-python"],"created_at":"2024-12-20T07:13:14.862Z","updated_at":"2025-06-16T00:10:55.744Z","avatar_url":"https://github.com/imranc07.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mini Project - 1\n\nThis project implements a Page Object Model (POM) structure for automated testing of the [GUVI](https://www.guvi.in).\n\nWebsite Link: https://www.guvi.in/\n\n\n## Test Objective:\n\nThe objective of this project is to implement an automated testing framework for the [GUVI](https://www.guvi.in) web application using Python Selenium. The primary goals are to:\n\n- **Validate Functionalities:** Ensure the core functionalities of the GUVI platform (such as navigation, login, and sign-up processes) work as expected.\n- **Improve Test Maintenance:** Utilize a structured approach to separate web page interaction logic from test scripts, making it easier to maintain and extend as the application evolves.\n- **Enhance Test Reusability:** Promote reusability of code for interactions with page elements, reducing duplication across test scripts.\n- **Support Data-Driven Testing:** Leverage test data (stored in TestData/data.py) to run multiple test scenarios with different input sets to verify robustness and edge case handling.\n- **Increase Test Coverage:** Automate critical paths such as user authentication, button functionality, and error handling to ensure high test coverage across essential user flows.\n- **Ensure Browser Compatibility:** Run tests across multiple browsers (e.g., Chrome, Firefox, Edge, Safari) to validate cross-browser compatibility and identify potential issues.\n- **Enable Continuous Testing:** Integrate with continuous integration (CI) tools to run tests automatically, ensuring that new changes do not introduce regressions or break existing functionality.\n\nBy achieving these objectives, this project aims to create a robust, maintainable, and scalable test automation framework for the GUVI platform.\n\n\n## Test Suite:\n\n### Test-Case-1:\n1. Validate whether the URL `https://www.guvi.in` is accessible.\n\n### Test-Case-2:\n1. Verify whether the title of the webpage is `Guvi | Learn to code in your native language`.\n\n### Test-Case-3:\n1. Check whether the **Login** button is visible.\n2. Verify whether the **Login** button is clickable.\n\n### Test-Case-4:\n1. Check whether the **Sign-Up** button is visible.\n2. Verify whether the **Sign-Up** button is clickable.\n\n### Test-Case-5:\n1. Click on the **Sign-Up** button and navigate to the URL `https://www.guvi.in/sign-in/` to confirm the page exists.\n\n### Test-Case-6:\n1. Log in to your Guvi account using valid email and password credentials to verify successful login.\n2. Log out from your Guvi account and verify the operation.\n\n### Test-Case-7:\n1. Attempt to log in to your Guvi account using invalid email and password credentials and capture the error message.\n\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- [License](#license)\n\n\n## Features\n\n- **Page Object Model (POM):** Separation of test logic and UI interactions. Each web page has its own corresponding class that defines methods for interacting with the elements on that page.\n- **Pytest Framework:** Used to manage test cases, execute tests, and generate detailed reports.\n- **Reusable Components:** Common actions like login, navigating to sections, and performing shutdown operations are encapsulated in reusable methods, improving maintainability.\n- **Cross-Platform Compatibility:** The framework can be run across different environments, supporting different operating systems and web browsers.\n- **Automation and Reporting:** Automation of repetitive tests with detailed reports on test results, making it easier to monitor and debug test executions.\n\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**: Microsoft Edge, Google Chrome, Mozilla Firefox, Safari\n- **CI/CD Integration**: GitHub Actions\n\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/imranc07/Mini_Project_1.git\n   cd Mini_Project_1\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=Reports/test_report.html\n   ```\n\n3. **Run Tests by Marker** (e.g., only \"login\" tests):\n   ```bash\n   pytest TestScripts/test_HomePage.py::test_guvi_url\n   ```\n\n4. **Headless Browser Execution**:\n   - You can set up tests to run in Headless mode directly in your test script.\n\n---\n\n## Project Structure:\n```\nMini_Project_1/\n│\n├── PageObjects/             # Contains Page Object Models GUVI Web applications\n│   ├── HomePage.py          # Handles methods and elements\n│\n├── Reports/                 # Contains HTML reports\n│   ├── test_report.html     # HTML reports generated by pytest\n│   \n├── TestData/                # Stores test data for the test cases\n│   ├── data.py              # Contains reusable test data\n│\n├── TestLocators/            # Stores locators for web elements\n│   ├── locators.py          # Contains locators for all web elements used in the tests\n│\n├── TestScripts/             # Contains all test cases\n│   ├── test_HomePage.py     # Test cases for GUVI Web application\n│\n├── requirements.txt         # Lists project dependencies\n│\n└── README.md                # Project documentation\n```\n\n---\n\n## License\nThis project is open-source and available under the **\"MIT License\"**.\n\n    ```\n    Feel free to adjust the content based on your specific project setup!\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranc07%2Fmini_project_1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimranc07%2Fmini_project_1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranc07%2Fmini_project_1/lists"}