{"id":31782097,"url":"https://github.com/bhushanambilkar/project_01_selenium_python_webautomation_framework","last_synced_at":"2025-10-10T09:14:44.835Z","repository":{"id":313486697,"uuid":"1051528586","full_name":"BhushanAmbilkar/Project_01_Selenium_Python_WebAutomation_Framework","owner":"BhushanAmbilkar","description":"[ OrangeHRM ]  A Hybrid Selenium-Pytest Automation Framework with Page Object Model, Logging, Screenshots, and HTML Reports.","archived":false,"fork":false,"pushed_at":"2025-09-07T14:39:13.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-07T16:25:40.300Z","etag":null,"topics":["automation-testing","framework","logging","orangehrm","page-object-model","pytest","python","reporting","reports","selenium"],"latest_commit_sha":null,"homepage":"https://opensource-demo.orangehrmlive.com","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/BhushanAmbilkar.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-06T07:16:27.000Z","updated_at":"2025-09-07T14:39:16.000Z","dependencies_parsed_at":"2025-09-07T16:25:42.298Z","dependency_job_id":null,"html_url":"https://github.com/BhushanAmbilkar/Project_01_Selenium_Python_WebAutomation_Framework","commit_stats":null,"previous_names":["ambilkarbhushan/project_01_selenium_python_webautomation_framework","bhushanambilkar/project_01_selenium_python_webautomation_framework"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/BhushanAmbilkar/Project_01_Selenium_Python_WebAutomation_Framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BhushanAmbilkar%2FProject_01_Selenium_Python_WebAutomation_Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BhushanAmbilkar%2FProject_01_Selenium_Python_WebAutomation_Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BhushanAmbilkar%2FProject_01_Selenium_Python_WebAutomation_Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BhushanAmbilkar%2FProject_01_Selenium_Python_WebAutomation_Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BhushanAmbilkar","download_url":"https://codeload.github.com/BhushanAmbilkar/Project_01_Selenium_Python_WebAutomation_Framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BhushanAmbilkar%2FProject_01_Selenium_Python_WebAutomation_Framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003395,"owners_count":26083581,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["automation-testing","framework","logging","orangehrm","page-object-model","pytest","python","reporting","reports","selenium"],"created_at":"2025-10-10T09:14:33.338Z","updated_at":"2025-10-10T09:14:44.829Z","avatar_url":"https://github.com/BhushanAmbilkar.png","language":"HTML","readme":"\n## OrangeHRM Automation Framework (Python + Selenium + Pytest)\n\nThis is a **hybrid automation framework** built with **Python, Selenium, and Pytest**.  \nThe framework is designed to test the **OrangeHRM web application**, but it can be extended to any web project.  \nIt follows the **Page Object Model (POM)** design pattern, which makes the code **clean, reusable, and easy to maintain**.  \n\n\nThe framework includes:\n- Cross-browser support (Chrome, Firefox, Edge)\n- Logging system\n- Configuration management\n- Screenshots on failure\n- HTML test reports\n- Support for grouping tests (sanity, regression)\n\n ## Project Folder Structure\nHere is how the project is organized. Each folder and file has a clear responsibility.\n\n📦 OrangeHRM_Automation_Framework\n\n├── 📂 configuration\n    \n     └── config.ini     # Stores environment details like URL, username, password\n\n├── 📂 logs\n\n    └── automation.log    # Stores logs for each test execution\n\n├── 📂 pageObjects\n\n     └── LoginPage.py     # Page Object class for login page\n     └── DashboardPage.py # Example for dashboard page\n\n├── 📂 testCases\n\n\n    └── conftest.py        # Pytest fixtures (browser setup, teardown, hooks)\n     └── test_login.py     # Test case that verifies login functionality\n     └── test_dashboard.py # Example test case for dashboard\n\n├── 📂 utilities\n     \n     └── readProperties.py   # Reads values from config.ini\n     └── customLogger.py     # Provides reusable logging utility\n\n├── 📂 reports\n\n     └── pytest_report.html   # Stores HTML reports of test execution\n\n├── 📂 screenshots\n\n     └── failed_test.png     # Stores screenshots of failed test cases\n\n├── requirements.txt    # List of required Python packages\n\n\n├── pytest.ini     # Pytest configuration (markers, options)\n\n├── run.bat         # Batch file for test execution\n## Features Explained\n1. **Page Object Model (POM):** Each web page is represented by a Python class with its own locators and methods. This avoids code duplication.  \n2. **Cross-browser Testing:** You can run tests on different browsers (Chrome, Firefox, Edge) by passing a parameter.  \n3. **Configuration Management:** Common values like URL and login credentials are stored in `config.ini`. This avoids hardcoding values inside test cases.  \n4. **Custom Logging:** Every step in the test execution is logged into `logs/automation.log` for easy debugging.  \n5. **Screenshots on Failure:** If a test fails, the framework automatically captures a screenshot and saves it inside the `screenshots/` folder.  \n6. **Reports:** After execution, a clean HTML report is generated inside the `reports/` folder showing test results.  \n7. **Pytest Fixtures:** Fixtures in `conftest.py` handle browser setup and teardown in a reusable way.  \n8. **Grouping Tests:** You can mark tests as `sanity` or `regression` and run them selectively.  \n\n---\n## Getting Started\n\n### 1. Prerequisites\n- Install **Python 3.11+**  \n- Install **pip** (Python package manager)  \n- Install browser drivers (e.g., ChromeDriver, GeckoDriver)  \n\n### 2. Install Dependencies\nAll required packages are listed in `requirements.txt`. Install them with:\n```bash\npip install -r requirements.txt\n\n```\n\n### 3. Run Tests\nRun all tests with Chrome (default):\n```bash\npytest -v -s --html=reports/report.html\n```\n\nRun tests in parallel (using pytest-xdist):\n\n```bash \npytest -v -s -n=3 --browser chrome --html=reports/report.html\n```\n\n\n\n## Reports, Logs \u0026 Screenshots\n\n- Logs: Execution logs are saved in `logs/automation.log.` They show steps, failures, and errors.\n\n- Reports: After execution, a test summary is generated in `reports/pytest_report.html.`\n\n- Screenshots: If a test fails, a screenshot is captured automatically and stored in `screenshots/.`\n\n## Future Enhancements\n\n- Integrate with Jenkins CI/CD for automated execution.\n\n- Add Allure Reports for advanced reporting.\n\n- Implement Data Driven Testing using Excel (openpyxl).\n\n## Author\n\nDeveloped By :-  Bhushan Ambilkar\n\nContact: ambilkarbhushan25@gmail.com\n\nThis project is open for learning and contributions. Feel free to fork and enhance it.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhushanambilkar%2Fproject_01_selenium_python_webautomation_framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhushanambilkar%2Fproject_01_selenium_python_webautomation_framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhushanambilkar%2Fproject_01_selenium_python_webautomation_framework/lists"}