Repository contains the project with automation of UI Tests by Python, Pytest, Appium and Selenium WebDriver.
-
Implemented sample test for web cam web app: mockup the web camera, capture screenshot and compare the camera name
-
Implemented sample tests for private Android app - restricted
Inspired by https://github.com/ibalagurov/heisenbug_piter_2018_example
OS: Mac OS
Setup on your running machine:
- Appium GUI server
- Android SDK
Install:
-
pytest:
pipenv install pytest --dev
-
selene:
pip install selene
-
appium client for python:
pip install Appium-Python-Client
-
Allure test report:
pip install allure-pytest
- Specify platform in configure :
PLATFORM='WEB'
orIOS
orANDROID
- Specify devices, collecting browser logs and etc (through ANDROID_VERSION, ANDROID_DEVICE_NAME, ANDROID_DEVICE_UDID, ANDROID_APP_ACTIVITY, IOS_VERSION, IOS_DEVICE_NAME variables)
- Run Appium GUI server for iOS or Android platform
-
- Web:
python3 -m pytest --alluredir=allure-report/ tests/ui/web
- Android:
python3 -m pytest --alluredir=allure-report/ tests/ui/android
- Web:
-
Generate test-report:
allure serve allure-report/