https://github.com/taurus5650/automation_ui_test_selenium_pytest
https://github.com/taurus5650/automation_ui_test_selenium_pytest
pytest python3 selenium selenium-python ui-test-automation ui-testing website-testing
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/taurus5650/automation_ui_test_selenium_pytest
- Owner: taurus5650
- Created: 2024-04-05T16:18:53.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-14T12:30:47.000Z (about 1 year ago)
- Last Synced: 2025-01-06T09:46:00.177Z (6 months ago)
- Topics: pytest, python3, selenium, selenium-python, ui-test-automation, ui-testing, website-testing
- Language: Python
- Homepage:
- Size: 22.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing Website UI with Python Pytest and Selenium
## Purpose
- For testing, which using
- Pytest framework
- Selenium
- Docker
- Support testing
- Website UI testing (Testing resouces : https://automationexercise.com/test_cases)## Directory Structure
```commandline
git ls-tree -r --name-only HEAD | tree --fromfile.
├── .gitignore
├── README.md
├── action
│ ├── api_request.py
│ └── driver.py
├── conftest.py
├── deployments
│ └── Dockerfile
├── logger.py
├── page
│ ├── acc_create_confirmation_page
│ │ ├── acc_create_confirmation_page.py
│ │ └── locator.py
│ ├── home_page
│ │ ├── home_page.py
│ │ └── locator.py
│ ├── login_page
│ │ ├── locator.py
│ │ └── login_page.py
│ └── signup_page
│ ├── locator.py
│ └── signup_page.py
├── readme
│ └── docker_log_test_result.png
├── requirements.txt
└── test_suites
├── test_01_user
│ └── test_register_user.py
└── test_02_services
└── test_services.py```
## Step-by-step
1. Build up a simple Docker
```
$ docker build --platform linux/amd64 --no-cache -t ui_selenium -f ./deployments/Dockerfile .
```2. Run the test command
```commandline
$ pytest -v -s
OR
$ pytest -v -s test_suites/test_01_user/test_register_user.py
```
