Ubuntu: Katalon cannot run Test Suites

Hi.

I’m currently trying to run my Test Suites on an Ubuntu 18.04.1 system using the Katalon Studio Version 5.10.1.

Unfortunatelly all my tests are crashing. Can you help me with debugging?

In the end I would like to execute my Test Suites automatically from my local Jenkins instance. But before I can automate that, I would like to run the test manually on the same machine as my Jenkins instance.

Katalon Studio Log:

01-28-2019 01:25:21 PM openBrowser("https://google.com")

Elapsed time: 0.646s

openBrowser("https://google.com") FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: 'https://google.com' (Root cause: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
  (Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 4.15.0-43-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 94 milliseconds
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'
System info: host: 'ANONYMIZED', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-43-generic', java.version: '1.8.0_201'
Driver info: driver.version: CChromeDriver)
    at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36)
    at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)
    at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)
    at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.openBrowser(OpenBrowserKeyword.groovy:81)
    at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.execute(OpenBrowserKeyword.groovy:67)
    at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:53)
    at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.openBrowser(WebUiBuiltInKeywords.groovy:60)
    at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$openBrowser.call(Unknown Source)
    at MY_SYSTEM_log_in.run(MY_SYSTEM_log_in:5)
    at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
    at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
    at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:328)
    at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:319)
    at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:298)
    at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:290)
    at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:224)
    at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:106)
    at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword$_callTestCase_closure1.doCall(CallTestCaseKeyword.groovy:59)
    at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword$_callTestCase_closure1.call(CallTestCaseKeyword.groovy)
    at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:54)
    at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword.callTestCase(CallTestCaseKeyword.groovy:80)
    at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword.execute(CallTestCaseKeyword.groovy:44)
    at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:53)
    at com.kms.katalon.core.keyword.BuiltinKeywords.callTestCase(BuiltinKeywords.groovy:334)
    at MY_TEST.run(MY_TEST:24)
    at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
    at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
    at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:328)
    at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:319)
    at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:298)
    at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:290)
    at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:224)
    at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)
    at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)
    at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)
    at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:149)
    at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
    at TempTestSuite1548678320411.run(TempTestSuite1548678320411.groovy:36)

My steps so far
The first time i tried to run my tests, I had several missing dependencies from Java (ClassNotFoundExceptions all over the place).
I searched online for the corresponding Java library for the missing class definition, downloadet the .jar from maven central as .jar file and placed them into the project’s “Drivers” folder.
After 10 jars (most of them were selenium libraries… others were okttp, okio and sikuli-api) Katalon Studio told me, that it can’t find some Kotlin files.
This was the point I stopped to search for more libraries since I was pretty grumpy about that :angry: )

Then I tried another approach by using Katalon in a Docker container ( GitHub - katalon-studio/docker-images: Docker images for Katalon Studio and other frameworks ).
This didn’t work as well. According to the log, it was missing the dependencies as well.

After that I found out that I need to run OpenJDK. Installed it and switched default java and javac to OpenJDK version.
Since this didn’t work as well, i installed Chrome and tried to run my Suite with this instead of Firefox.
The StackTrace from above is from this stage.

What am I doing wrong?

Greetings,
Richard

I’m having the same issue - any luck finding a solution?

Hi,

add to your com.kms.katalon.core.webui.chrome.properties at least this property
--no-sandbox
C:\KatalonStudio\projectName\settings\internal
{"CHROME_DRIVER":{"args":["--no-sandbox","--disable-infobars"]}}
2 Likes

Thanks, that fixed the issue

I fixed my issue by downgrading to an older Katalon Studio version: 5.8.6
With this version, I was able to execute my tests in the Katalon Studio UI. Unfortunatelly I was not able to execute it from a Jenkins job.

Now I tested your fix ( @Timo_Kuisma ) with the 5.10.1 version. With this fix I was able to execute the tests from the Katalon Studio UI, but still not from my Jenkins job (the same exception as mentioned in post #1 )

Do you have any other idea how to fix this?

Hi,

check your jenkins permissions