A professional test automation framework for OrangeHRM using Playwright and Python.
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Install Playwright browsers:
playwright install
Run all tests:
pytest
Run specific test file:
pytest tests/test_login.py
Run smoke tests:
pytest -m smoke
Generate Allure report:
allure serve reports/allure-results
tests/
: Test cases organized by featurepages/
: Page Object Modelscomponents/
: Reusable UI componentsutils/
: Helper functions and configurationsreports/
: Test execution reports and screenshots