Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lumunix/pytest-bdd-ui-automation
Pytest BDD Project template for BDD UI Testing using Selenium
https://github.com/lumunix/pytest-bdd-ui-automation
Last synced: 26 days ago
JSON representation
Pytest BDD Project template for BDD UI Testing using Selenium
- Host: GitHub
- URL: https://github.com/lumunix/pytest-bdd-ui-automation
- Owner: Lumunix
- Created: 2023-01-13T20:29:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-31T15:19:58.000Z (over 1 year ago)
- Last Synced: 2023-09-19T18:43:07.226Z (about 1 year ago)
- Language: Python
- Size: 116 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pytest-BDD-UI-Automation
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.## Getting Started
1. Install [Poetry](https://python-poetry.org/docs/#installation) python dependency manager
2. Install [Docker](https://docs.docker.com/engine/install/)
3. [Clone](https://www.jetbrains.com/help/pycharm/set-up-a-git-repository.html#clone-repo) this repository
4. Open the [terminal](https://www.jetbrains.com/help/pycharm/terminal-emulator.html#open-terminal) in pycharm, install the dependencies for the project using the following command
```
poetry install
```
### Setting up Selenium Grid
```shell script
# 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
``````shell script
# Accessing Selenium Grid UI
http://127.0.0.1:4444/ui
```### Setting up Allure Docker Service/ UI
```shell script
# 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
```
```shell script
# Accessing Allure UI
http://localhost:5252/allure-docker-service-ui/
```
### Running Tests```shell script
# All Tests
pytest
# Run Specific Test Stepfile
pytest pytest_bdd_ui_automation/steps/test_home_page_steps.py
```