https://github.com/prog420/automationpractice
A playground project for automated UI testing using Python, Pytest and Selenium.
https://github.com/prog420/automationpractice
allure pytest python selenium
Last synced: 2 months ago
JSON representation
A playground project for automated UI testing using Python, Pytest and Selenium.
- Host: GitHub
- URL: https://github.com/prog420/automationpractice
- Owner: prog420
- Created: 2023-11-21T11:48:41.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-01T08:32:45.000Z (about 1 year ago)
- Last Synced: 2025-06-29T18:02:14.457Z (12 months ago)
- Topics: allure, pytest, python, selenium
- Language: Python
- Homepage: https://prog420.github.io/AutomationPractice/
- Size: 12.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Test Automation Project for [Practice.ExpandTesting.com](https://practice.expandtesting.com/)
[]()
[]()
[]()
A playground project for automated UI testing using Python, Pytest and Selenium.
**Test Reports:** [Allure](https://allurereport.org/)
**CI:** [Github Actions](https://github.com/features/actions/)
---
### 🛠️ Prerequisites
[](https://pypi.python.org/pypi/pytest)
[](https://pypi.org/project/pytest-xdist/)
[](https://pypi.org/project/selenium/)
[](https://pypi.python.org/pypi/allure-pytest)
[](https://pypi.org/project/webdriver-manager/)
---
### 🛠️ Running Tests
#### a) Github Actions CI
Check Latest Test Run Report: [Allure Report Page](https://prog420.github.io/AutomationPractice)
Launch New Test Run:
1. Navigate to `Actions` tab.
2. Select `Allure Report CI`.
3. Click `Run Workflow`.
4. Select `Use Workflow From:`: `Branch: main`.
5. Click `Run Workflow`.
6. Wait until the job is complete.
7. Navigate to [Allure Report Page](https://prog420.github.io/AutomationPractice).
#### b) Local Machine:
1. Clone repository, install dependencies:
```bash
# Clone repository
git clone ...
# Install virtual environment
python3 -m venv venv
# Activate virtual environment
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
```
3) Start new test run:
```bash
pytest -vs --alluredir=allure-reports
```
4) Check allure report:
```bash
allure serve allure-reports
```
---
### 🛠️ CLI Arguments:
1. `--headless` - run tests without loading the browser's UI.