https://github.com/prog420/demo-qa
Automated tests with Pytest & Selenium
https://github.com/prog420/demo-qa
pytest selenium
Last synced: 4 months ago
JSON representation
Automated tests with Pytest & Selenium
- Host: GitHub
- URL: https://github.com/prog420/demo-qa
- Owner: prog420
- Created: 2024-08-24T13:08:29.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-24T13:21:50.000Z (almost 2 years ago)
- Last Synced: 2025-10-06T12:48:20.940Z (9 months ago)
- Topics: pytest, selenium
- Language: Python
- Homepage: https://prog420.github.io/demo-qa/
- Size: 4.29 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 [DemoQA.com](https://demoqa.com/)
[]()
[]()
---
Latest Test Report: [Github Page](https://prog420.github.io/demo-qa)
---
**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)
---
### 🛠️ Running Tests
#### a) Github Actions CI
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/demo-qa).
#### 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
```
2. Start new test run:
```bash
pytest -vs --alluredir=allure-reports
```
3. Check allure report:
```bash
allure serve allure-reports
```
---
### 🛠️ Custom CLI Arguments:
1. `--headless` - run tests without loading the browser's UI.
2. `--ignore-passed-test-attachments` - do not attach screenshots / logs to the Allure report.