A test automation framework built with Vibium and Python-PyTest for automated web testing of the OrangeHRM demo application.
This project demonstrates automated testing using Vibium, a Python browser automation library, combined with Pytest framework. The test suite automates user management workflows in the OrangeHRM demo application, including login and user creation processes.
- Vibium Integration: Leverages Vibium for browser automation
- Pytest Framework: Utilizes Pytest for test organization and execution
- Page Object Model: Implements locator separation for maintainability
Vibium/
βββ conftest.py # Pytest configuration and fixtures
βββ requirements.txt # Project dependencies
βββ README.md # Project documentation
βββ screenshots/ # Test execution screenshots
βββ tests/ # Test cases directory
β βββ __init__.py
β βββ test_login_add_new_user.py # Login and user creation tests
βββ utils/ # Utility modules
βββ __init__.py
βββ data/ # Test data
β βββ __init__.py
β βββ common_data.py # Shared test data and constants
βββ lib/ # Support libraries
β βββ __init__.py
β βββ support_methods.py # Helper functions
βββ locators/ # UI element locators
βββ __init__.py
βββ locators.py # CSS selectors for web elements
-
Clone the repository
git clone <repository-url> cd Vibium-Python-PyTest-Automation
-
Create a virtual environment (recommended)
python -m venv .venv source .venv/bin/activate -
Install dependencies
pip install -r requirements.txt
Go to Vibium home directory and run below command as required.
Run all test files:
pytest -vs testsRun specific test file:
pytest -vs tests/test_login_add_new_user.py- pytest (9.0.2): Testing framework
- vibium (0.1.0): Browser automation library
- pytest-html (4.1.1): HTML report generation
Note: This project uses the OrangeHRM demo application for testing purposes. The demo site may reset periodically, which could affect test execution.