Skip to content

dmitriy-belkin/platforma-gfc-gui-web-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Platform GFC UI Test (WEB)

pipeline status coverage report Latest Release

Browsers support

  • Chrome (default)
  • Edge
  • FireFox - not yet

GitLab Usage

  • 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

Prepare (Allure)

Linux

For debian-based repositories a PPA is provided:

sudo apt-add-repository ppa:qameta/allure
sudo apt-get update 
sudo apt-get install allure

Windows

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

Mac OS X

For Mas OS, automated installation is available via Homebrew

brew install allure

Run with allure

pytest --allure=./reports/

Read allure

allure serve ./reports/

Local Usage

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages