Skip to content

taurus5650/automation_ui_test_selenium_pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Website UI with Python Pytest and Selenium

Purpose

Directory Structure

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 .
  1. Run the test command
$ pytest -v -s
OR
$ pytest -v -s test_suites/test_01_user/test_register_user.py

docker_log_test_result.png