Skip to content

andgineer/e2e-tests

Repository files navigation

Github CI Status

End-to-end web UI tests

Uses headless-browsers and Selenuim Grid in docker-compose.

Produce beautiful reports with allure.

Read more in my blog.

Allure test report

  • Test report example:
  • when run on GitHub Actions, an Allure report is created and uploaded on github pages: Allure report

Usage

To start Selenium Grid and Allure reporter run:

docker-compose up -d

Your Selenium Grid console will be at http://localhost:4444/ui/.

The reports are available at http://localhost:8800.

Run tests

Tests should save results in folder allure-results mounted to the Docker container with Allure reporter.

Install dependencies (note: there are two dots), run all tests from tests folder and create allure report:

. ./activate.sh
scripts/test.sh

Our tests have a parameter --host to specify the URL of the tested web application - see pytest hook pytest_addoption in conftest.py.

For example, to test https://google.com run:

scripts/test.sh --host=https://google.com

This will fail because there is no word "Python" on the Google main page, unfortunately.