UI + API тесты для сайта DemoQA Book Store, написанные на Python с использованием Selenium, Pytest и Allure
This project contains automated tests for the public demo site DemoQA Book Store.
It includes both UI and API tests using modern best practices: Page Object Model, Pytest fixtures, and Allure reporting.
- Python 3
- Selenium — UI automation
- Requests — API testing
- Pytest — test framework
- Allure — test reporting
- Page Object Model (POM) — scalable UI test structure
bookshelf-tests/ ├── tests/ │ ├── api/ # API tests │ └── ui/ # UI tests ├── pages/ # Page Object classes ├── utils/ # Utilities (reserved for later) ├── conftest.py # Pytest fixtures ├── requirements.txt └── README.md
🚀 Getting Started
-
Install dependencies python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt
-
Run tests UI tests: pytest tests/ui/ --alluredir=allure-results API tests: pytest tests/api/ --alluredir=allure-results
-
Generate Allure report allure serve allure-results
🎯 Example Tests
✅ API: Verify that a specific book (Git Pocket Guide) exists in the list.
🔍 UI: Search for a book title and validate that results contain the keyword.
🤝 Author: Ivanna Feel free to fork, explore, and contribute!