Represent most popular OOD pattern for Web UI automation using python programming language (for learning reference only).
Automated tests are demonstrated on http://newtours.demoaut.com/mercurywelcome.php web application.
Tools
- python 3.6 | python 3.7 | python 3.8
- pytest framework
- selenium library and pom framework
- allure reporting
- travis CI
- code analysis
In addition code is fully type annotated โญ
From the root directory of your shell run following commands:
- Smoke tests
./run-tests.sh smoke
- Unit tests
./run-tests.sh unit
- Whole suite
./run-tests.sh all
Run a bunch of tests (e.g smoke) via following command:
./run-tests.sh smoke
After please open test-report.html
file to see detailed testing report:
Please follow next instruction to generate allure report (mac OS example):
- Update java via
brew cask install adoptopenjdk
- Install allure via
brew install allure
- Generate allure project via
allure serve report
- 0.3.0
- Introduce allure integration
- 0.2.0
- Introduce travis CI
- Add static code analysis tools (
black
,flake8
andmypy
) along with unittests
- 0.1.0
- Distribute initial version
Author โ Volodymyr Yahello.
Distributed under the GPL v3
license. See LICENSE for more information.
You can reach out me at:
- vyahello@gmail.com
- https://github.com/vyahello
- https://www.linkedin.com/in/volodymyr-yahello-821746127
- clone the repository
- configure Git for the first time after cloning with your
name
andemail
pip install -r requirements.txt
to install all project dependenciespip install -r requirements-dev.txt
to install all project development dependencies