/docker-katalon-selenium-chrome

execute katalon tests in a docker container

Primary LanguageXSLT

Docker Katalon Studio Selenium Chrome

Container of this image can execute Katalon Studio tests in console mode with Chrome (headless) as browser type. The image is based on the Selenium image for Chrome and uses Katalon_Studio_Linux_64-5.1.

Usage examples

  • PROJECT_FILE: katalon project file (.prj)
  • TESTSUITE_PATH: path to your test suite ( relative to TEST_DIR)
  • TEST_DIR: base directory of your katalon tests

execute tests from inside the container

  1. execute the container :
docker run --rm -it -v ${TEST_DIR}:/testdir usuresearch/katalon-selenium-chrome bash
  1. execute tests
katalon -runMode=console -projectPath="/testdir/$PROJECT_FILE" -retry=0 -testSuitePath="$TESTSUITE_PATH" -browserType="Chrome (headless)" --remoteWebDriverType=Selenium

execute tests from outside the container

docker run --rm -it -e PRJ=$PROJECT_FILE -e "TSP=$TESTSUITE_PATH"  -v $TEST_DIR:/testdir usuresearch/katalon-selenium-chrome bash -c '/start_xvfb.sh && katalon -runMode=console -projectPath="/testdir/$PRJ" -retry=0 -testSuitePath="$TSP" -browserType="Chrome (headless)" --remoteWebDriverType=Selenium'