A Python test automation project built with Playwright for learning web testing fundamentals.
- Python 3.9+ - Programming language
- Playwright - Web automation framework
- Pytest - Testing framework
- Poetry - Dependency management
- Allure - Test reporting
-
Clone the project:
git clone https://github.com/vitaliiyz/aqa_python.git cd aqa_python -
Install Poetry and dependencies:
# Install Poetry if needed pip install poetry # Install project dependencies poetry install # Install browsers poetry run playwright install
Basic test execution:
# Run all tests poetry run pytest # Run specific test file poetry run pytest tests/main_page_test.py # Run with browser UI visible poetry run pytest --headed # Generate test report poetry run pytest --alluredir=allure-results poetry run allure serve allure-results
โโโ pages/ # Page Object Model classes
โ โโโ base_page.py # Common page functionality
โ โโโ main_page.py # Main page elements and actions
โ โโโ ...
โโโ tests/ # Test cases
โ โโโ conftest.py # Test fixtures
โ โโโ *_test.py # Individual test files
โโโ utils/ # Helper functions
โโโ config.py # Configuration settings
โโโ pyproject.toml # Dependencies and settings
This project demonstrates:
- Page Object Model pattern
- Pytest fixtures and parameterization
- Web element interaction with Playwright
- Test reporting with Allure
- Basic CI/CD concepts
This is a learning project for educational purposes.