Katalon – Docker – Linux

I’ve used Katalon primary in a Windows environment for running smoke tests.  This tool is relatively new, built on top of Selenium, and actively supported.  I highly suggest checking it out if you have some free time.  (Article describe Katalon pro’s)

So, the Katalon tests I run are launched from Jenkins and executed on a Windows 2012 slave machines via the command line.  These slave machines must have Katalon installed in order to execute the tests.

Tangent – Generating the Katalon command line string is beyond easy.

katalon.png

Installing Katalon on each Windows slave machine and remembering to do so in the future is a pain.  Well, as of Katalon version 4.8, you can now execute the tests from a Linux server via the Linux shell.

So, the solution I am thinking here is the following:

  1. Create a new docker image with Katalon installed and an ENTRYPOINT of ./katalon.
  2. Setup a Linux server as a Jenkins slave
  3. Install Docker on this new Linux server
  4. Pull the Katalon docker image to this new server
  5. Create a smoke test Jenkins job that will pull the smoke test files from Git down to the slave, and then run the docker container with the correct smoke test syntax included in the command. (Similar to this)

The benefits of this solution are numerous. (e.g. easily update Katalon versions, identical Katalon configurations between Linux slaves, easily recover from outages, etc…)

katalon