{"id":24882056,"url":"https://github.com/alamarnissi/python-selenium-automation-framework","last_synced_at":"2026-04-24T22:32:20.359Z","repository":{"id":268873236,"uuid":"905672206","full_name":"alamarnissi/python-selenium-automation-framework","owner":"alamarnissi","description":"Selenium-based hybrid framework for software testing automation using Python. ","archived":false,"fork":false,"pushed_at":"2024-12-25T15:29:10.000Z","size":21962,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T03:04:27.218Z","etag":null,"topics":["autmation","hybrid-framework","python","quality-assurance","selenium","software-testing"],"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/alamarnissi.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-19T09:48:40.000Z","updated_at":"2024-12-25T15:29:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd57074e-5117-45e7-bc21-dded79af4fb0","html_url":"https://github.com/alamarnissi/python-selenium-automation-framework","commit_stats":null,"previous_names":["alamarnissi/python-selenium-automation-framework"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alamarnissi/python-selenium-automation-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alamarnissi%2Fpython-selenium-automation-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alamarnissi%2Fpython-selenium-automation-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alamarnissi%2Fpython-selenium-automation-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alamarnissi%2Fpython-selenium-automation-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alamarnissi","download_url":"https://codeload.github.com/alamarnissi/python-selenium-automation-framework/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alamarnissi%2Fpython-selenium-automation-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["autmation","hybrid-framework","python","quality-assurance","selenium","software-testing"],"created_at":"2025-02-01T12:14:55.156Z","updated_at":"2026-04-24T22:32:20.340Z","avatar_url":"https://github.com/alamarnissi.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium Python Hybrid Framework\n\nA robust and scalable hybrid framework built with Selenium and Python for automating software tests. This framework uses the Page Object Model (POM) combined with data-driven and keyword-driven testing approaches to ensure efficiency, reusability, and maintainability. Designed specifically to automate tests for the nopCommerce website.\n\n## Features\n\n- **Page Object Model (POM):** Simplifies test case maintenance by abstracting UI elements.\n- **Data-Driven Testing:** Supports external data sources (e.g., CSV, Excel) for flexible test data.\n- **Keyword-Driven Testing:** Easily extendable for non-programmers to contribute test cases.\n- **Detailed Reporting:** Includes logging and test result reports for analysis.\n- **Modular and Reusable Components:** Ensures scalability and reduces code duplication.\n\n## Prerequisites\n\nEnsure you have the following installed:\n\n- Python 3.8 or higher\n- Google Chrome browser\n- ChromeDriver (compatible with your Chrome version)\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/alamarnissi/python-selenium-automation-framework.git\n   cd python-selenium-automation-framework\n   ```\n\n2. Create a virtual environment and activate it:\n\n   ```bash\n   python -m venv venv\n   # On Windows:\n   venv\\Scripts\\activate\n   # On macOS/Linux:\n   source venv/bin/activate\n   ```\n\n3. Install the required dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Download ChromeDriver:\n\n   - Find the version matching your Chrome browser from [ChromeDriver Downloads](https://sites.google.com/chromium.org/driver/).\n   - Place the `chromedriver` executable in the root directory of the project.\n\n5. Configure Test Data and Parameters: \n   - Update the test data in the testData directory and modify configurations in config.ini if needed.\n\n## Project Structure\n\n```plaintext\npython-selenium-automation-framework/\n|-- Logs/                     # Stores execution logs\n|-- pageObjects/              # Page Object Model classes\n|-- TestData/                 # Test data files (e.g., Excel)\n|-- testCases/                # Test scripts\n|-- utilities/                # Utility functions (e.g., logger, config loader)\n|-- Reports/                  # Test result reports\n|-- Configurations/           # Framework configuration file\n|-- requirements.txt          # Python dependencies\n|-- README.md                 # Project documentation\n```\n\n## Running Tests Locally\n\n1. Navigate to the root directory of the project.\n\n2. Basic Test Execution:\n\n   ```bash\n   pytest -v -s testCases/testLogin.py --browser=chrome\n   ```\nThis will:\n   - Run the `testLogin` test case using Chrome.\n\n3. Parallel Execution with HTML Reporting:\n\nUse the following command for parallel test execution with a detailed HTML report:\n   ```bash\n   pytest -v -s -n=2 --html=Reports\\report.html testCases/testLogin.py --browser=chrome\n   ```\n**Explanation of Command:**\n   - `pytest`: Executes tests using Pytest.\n   - `-v`: Enables verbose output.\n   - `-s`: Displays console outputs during the test.\n   - `-n=2`: Executes tests in parallel across 2 threads using the `pytest-xdist` package.\n   - `--html=Reports\\report.html`: Generates a detailed HTML report in the Reports directory.\n   - `testCases/testLogin.py`: Specifies the test file to execute.\n   - `--browser=chrome`: Specifies the browser to use for test execution. Modify to `firefox`, `edge`, etc., as needed.\n\n3. View the generated HTML report located in the `reports/` folder.\n\n## Writing New Tests\n\n1. Create a new Page Object Model class in the `pageObjects/` directory for the desired page.\n\n2. Add test data in the `TestData/` directory as needed.\n\n3. Write your test scripts in the `testCases/` directory, following the existing test patterns.\n\n## Dependencies\n\nThis framework uses the following Python packages:\n\n   - `selenium==4.27.1`: For browser automation.\n   - `pytest==8.3.4`: For running test cases.\n   - `pytest-html==4.1.1`: For generating detailed HTML test reports.\n   - `pytest-xdist==3.6.1`: For parallel test execution.\n   - `openpyxl==3.1.5`: For working with Excel files (test data).\n   - `allure-pytest==2.13.5`: For generating Allure reports.\n\n## Contributing\n\nContributions are welcome! Please follow these steps:\n\n1. Fork the repository.\n2. Create a feature branch (`git checkout -b feature-name`).\n3. Commit your changes (`git commit -m 'Add feature'`).\n4. Push to the branch (`git push origin feature-name`).\n5. Open a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n---\n\nHappy Testing!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falamarnissi%2Fpython-selenium-automation-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falamarnissi%2Fpython-selenium-automation-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falamarnissi%2Fpython-selenium-automation-framework/lists"}