Website Link: https://opensource-demo.orangehrmlive.com/web/index.php/auth/login
Launching OrangeHRM demo website and testing start automation, login functionality, click_pim functionality, click_add functionality, add_employee functionality and shutdown using pytest framework with a page object model POM Pattern.
Automated Login Tests: Verifies user login functionality, including positive and negative scenarios. Add Employee Tests: Ensures proper addition on new employee.
- Programming Language: Python
- Test Framework: pytest
- Automation Tool: Selenium WebDriver
- Reporting: pytest-html
- Browser Compatibility: Chrome, Firefox, and optionally, Edge
To execute tests, use the following commands:
- Run All Tests:
pytest
- Generate HTML Report:
pytest --html=Reports/test_report.html
- Headless Browser Execution: You can set up tests to run in headless mode directly in your test script.
OrangeHRM/
├── tests/ # All test cases
│ ├── test_start.py # Start test
│ ├── test_login.py # Login test
│ ├── test_click_pim.py # CLick PIM button tests
│ ├── test_click_add.py # Click add button test
│ ├── test_add_employee.py # and and save new employee test
│ ├── test_shutdown.py # Browser shutdown test
├── pages/ # Page Object Models for each page
│ ├── OrangeHRM.py
└── README.md # Project documentation