This project provides an example for testing a UI with Selenium WebDriver, written in Python, using the Page Object Model design pattern and driven via BDD feature files through Pytest BDD.
- Install Poetry python dependency manager
- Install Docker
- Clone this repository
- Open the terminal in pycharm, install the dependencies for the project using the following command
poetry install
# Arm Machines (M1 Apple Compatible)
docker compose -f docker-compose-arm.yml up seleniarm-hub node-chrome
# x86 Machines
docker compose -f docker-compose.yml up selenium-hub node-chrome
# Accessing Selenium Grid UI
http://127.0.0.1:4444/ui
# Arm Machines (M1 Apple Compatible)
docker compose -f docker-compose-arm.yml up allure allure-ui
# x86 Machines
docker compose -f docker-compose.yml up allure allure-ui
# Accessing Allure UI
http://localhost:5252/allure-docker-service-ui/
# All Tests
pytest
# Run Specific Test Stepfile
pytest pytest_bdd_ui_automation/steps/test_home_page_steps.py