Skip to main content

Katalon

Headless Linux Installation#

Install required packages:

sudo apt-get install xvfb firefox openjdk-8-jre

Edit /etc/systemd/system/xvfb.service:

[Unit]Description=Xvfb service[Service]ExecStart=/usr/bin/Xvfb :1 -screen 0 1280x1024x24 -ac +extension GLX +render -noreset[Install]WantedBy=multi-user.target

Start and set to start on boot:

systemctl daemon-reloadsystemctl start xvfbsystemctl enable xvfb

Run this starting from ./katalon folder:

export DISPLAY=":1" && ./katalon -noSplash  -runMode=console -consoleLog -projectPath="/x/x/x.prj" -retry=0 -testSuitePath="Test Suites/X Suite" -executionProfile="default" -browserType="Firefox (headless)" 2>/dev/null | grep '\[PASSED\]'