Execute tests on selenium grid via Jenkins without DISPLAY inside Docker container

I want to run the Katalon test suites via Jenkins. If I run the following command on linux inside a Docker container:

exec /opt/katalonstudio/katalon -runMode=console -remoteWebDriverType=Selenium -remoteWebDriverUrl=http://hub.local/wd/hub -reportFolder=/report -projectPath=/katalon/project/test2.prj -browserType=Safari -retry=0 '-testSuitePath=Test Suites/TS_RegressionTest'

It fails with:

Test Cases/Main Test Cases/TC1_Verify Successful Login FAILED because (of) java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.

Although it shouldn’t require a DISPLAY, because it should only run remotely?

1 Like

Maybe this Post can help: http://forum.katalon.com/discussion/4007/running-katalon-on-linux-machine-after-ssh-is-throwing-javaawtheadlessexception–no-x11-display

Thanks, but this doesn’t help me, because even if I use the official Docker Image, which has a DISPLAY via xvfb, it fails with the following message:

Unable to open browser with url: 'http://demoaut.katalon.com' (Root cause: org.openqa.selenium.WebDriverException: SafariDriver requires Safari 10 running on OSX El Capitan or greater.