Automation of DEMOQA site testing using Selenium and Page Object Model
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
# 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
-
Install Allure from the official website
-
Generate Allure report
allure serve
# 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
-
Go to "Run workflow" in GitHub Actions
# Options in workflow - chrome - firefox
-
View Allure test results after completing the GitHub Actions workflow
See this project on GitLab