Skip to content

Project on implementation of DEMOQA website testing framework using Python and Selenium

License

Notifications You must be signed in to change notification settings

vypiemzalyubov/selenium-automation-demoqa

Repository files navigation

Selenium Automation DEMOQA

Python Build License MIT

Automation of DEMOQA site testing using Selenium and Page Object Model

Used technologies

PyCharm Python Pytest Selenium Allure Report Pydantic Requests GitHub GitHub Actions Docker Docker Compose Ruff

Project Structure:

selenium-automation-demoqa/
├── .github/
│   ├── workflows
│   │   ├── run_tests.yml
├── models
│   ├── models.py
├── pages
│   ├── ...
│   ├── base_page.py
│   ├── elements_page.py
│   ├── ...
├── tests
│   ├── ...
│   ├── conftest.py
│   ├── elements_test.py
│   ├── ...
├── utils
│   ├── driver
│   │   ├── driver.py
│   │   ├── options.py
│   ├── generator.py
│   ├── logger.py
│   ├── routes.py
│   └── settings.py
├── ...
├── docker-compose.yml
├── Dockerfile
└── requirements.txt

Getting Started

# Clone repository
git clone https://github.com/vypiemzalyubov/selenium-automation-demoqa.git

# Install virtual environment
python3 -m venv venv

# Activate virtual environment
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

Viewing reports

  • Install Allure from the official website

  • Generate Allure report

    allure serve

allure

Running in Docker

# Build an image named "image-selenium"
docker build -t image-selenium .

# Starts the container, bind mount a volume and automatically deletes on exit
docker run --rm --name selenium-runner -v $(pwd)/docker-results/:/src/allure-results/ image-selenium

# Running with Docker Compose
docker-compose up

GitHub workflow


See this project on GitLab

About

Project on implementation of DEMOQA website testing framework using Python and Selenium

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published