Skip to content

namgivu/web-automation-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webdriver infra via selenium hub

ref. https://github.com/SeleniumHQ/docker-selenium#via-docker-compose

install & run test

require python & pipenv ref. bit.ly/nnpipenv

pipenv sync

PYTHONPATH=`pwd`  pipenv run  pytest ./tests/test_demo_googlesearch.py::Test::test_Chrome
PYTHONPATH=`pwd`  pipenv run  pytest ./tests/test_demo_googlesearch.py::Test::test_Firefox

PYTHONPATH=`pwd`  pipenv run  pytest ./tests/test_demo_googlesearch.py::Test      # 2 passed in 18.18s 
PYTHONPATH=`pwd`  pipenv run  pytest ./tests/test_demo_googlesearch.py::Test -n2  # 2 passed in 12.67s 
#                 .           .      .                                       run :ch and :ff in parallel

misc hint

speed up by using headless

avoid starting Xvfb server -e START_XVFB=false https://github.com/SeleniumHQ/docker-selenium#running-in-headless-mode

aftermath seleniumhub check

/wd/hub/status endpoint https://github.com/SeleniumHQ/docker-selenium#waiting-for-the-grid-to-be-ready

check-grid.sh script https://github.com/SeleniumHQ/docker-selenium#adding-a-healthcheck-to-the-grid

About

My research on the field of automation testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published