Katalon in docker container doesn't recognize testlink libraries


#1

Hello I am using a debian SO, everything works fine if I execute my test direct from the Katalon desktop app, the test passed and I am able to see the results in testlink tool, but when I did the exact same thing from Katalon with a Docker container, I got an error saying unable to resolve class testlink.api.java.client.TestLinkAPIClient, this is the command I’m using

docker run -t --rm -v “$(pwd)”:/katalon/katalon/source katalonstudio/katalon katalon-execute.sh -browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/Docker”

Any help will be greatly apreacciated, if you need anything to help to fix this error let me know


Test Suites/Docker - Chrome - 20190828_144900…0/1(0%)

2019-08-28 14:49:03.405 INFO  c.k.katalon.core.main.TestSuiteExecutor  - START Test Suites/Docker
2019-08-28 14:49:03.508 INFO  c.k.katalon.core.main.TestSuiteExecutor  - hostName = root - ab14af65c1af
2019-08-28 14:49:03.510 INFO  c.k.katalon.core.main.TestSuiteExecutor  - os = Linux 64bit
2019-08-28 14:49:03.511 INFO  c.k.katalon.core.main.TestSuiteExecutor  - hostAddress = 172.17.0.2
2019-08-28 14:49:03.512 INFO  c.k.katalon.core.main.TestSuiteExecutor  - katalonVersion = 6.2.2.4
2019-08-28 14:49:03.898 INFO  c.k.katalon.core.main.TestCaseExecutor   - --------------------
2019-08-28 14:49:03.898 INFO  c.k.katalon.core.main.TestCaseExecutor   - START Test Cases/FirstTest
2019-08-28 14:49:04.297 ERROR c.k.katalon.core.main.TestCaseExecutor   - ? Test Cases/FirstTest FAILED.
Reason:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
file:/tmp/katalon_execute/project/Scripts/FirstTest/Script1566877537090.groovy: 18: unable to resolve class testlink.api.java.client.TestLinkAPIClient
 @ line 18, column 1.
   import testlink.api.java.client.TestLinkAPIClient
   ^

file:/tmp/katalon_execute/project/Scripts/FirstTest/Script1566877537090.groovy: 20: unable to resolve class testlink.api.java.client.TestLinkAPIResults
 @ line 20, column 1.
   import testlink.api.java.client.TestLinkAPIResults
   ^

file:/tmp/katalon_execute/project/Scripts/FirstTest/Script1566877537090.groovy: 19: unable to resolve class testlink.api.java.client.TestLinkAPIException
 @ line 19, column 1.
   import testlink.api.java.client.TestLinkAPIException
   ^

3 errors

	at com.kms.katalon.core.main.ScriptEngine.getScript(ScriptEngine.java:199)
	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:337)
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:133)
	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:116)
	at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:83)
	at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
	at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
	at TempTestSuite1567003740906.run(TempTestSuite1567003740906.groovy:35)