- Chrome (default)
- Edge
FireFox- not yet
- To run job with Chrome just run pipeline with one of the Triggers
- To run job with Firefox set GitLab variable BROWSER=edge and run pipeline with one of the Triggers
For debian-based repositories a PPA is provided:
sudo apt-add-repository ppa:qameta/allure
sudo apt-get update
sudo apt-get install allure
For Windows, Allure is available from the Scoop commandline-installer.
To install Allure, download and install Scoop and then execute in the Powershell:
scoop install allure
Also Scoop is capable of updating Allure distribution installations. To do so navigate to the Scoop installation directory and execute
\bin\checkver.ps1 allure -u
This will check for newer versions of Allure, and update the manifest file. Then execute
scoop update allure
For Mas OS, automated installation is available via Homebrew
brew install allure
pytest --allure=./reports/
allure serve ./reports/
Prepare
docker run -d -p 4444:4444 --net grid --name selenium-hub selenium/hub:3.141.59
docker run -d --net grid -e HUB_HOST=selenium-hub --name chrome -v /dev/shm:/dev/shm selenium/node-chrome
docker run -d --net grid -e HUB_HOST=selenium-hub --name firefox -v /dev/shm:/dev/shm selenium/node-firefox
docker run -d --net grid -e HUB_HOST=selenium-hub --name edge -v /dev/shm:/dev/shm selenium/node-edge
Run tests
# tests on Chrome
pytest -s -v
# or
pytest --browser=chrome
# tests on Firefox
pytest --browser=firefox
# tests on Edge
pytest --browser=edge
End of work
docker stop selenium-hub chrome firefox edge