Works fine if I run tests from a project with no global vars/keywords but I am having issues my real projects:
Docker Command:
docker run -t --rm -v "$(pwd)":/katalon/katalon/source katalonstudio/katalon katalon-execute.sh -browserType="Web Service" -executionProfile="default" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/API Regression"
Error:
Opening project file: /tmp/katalon_execute/project/api_testing.prj
Parsing custom keywords in Plugins folder...
[Fatal Error] :1:1: Premature end of file.
[Fatal Error] :1:1: Premature end of file.
Generating global variables...
/%tmp%katalon_execute%project%api_testing.prj/Keywords/com/ws/Compare.groovy: 10 Groovy:unable to resolve class internal.GlobalVariable
/%tmp%katalon_execute%project%api_testing.prj/Keywords/com/ws/CustomLogs.groovy: 23 Groovy:unable to resolve class internal.GlobalVariable
/%tmp%katalon_execute%project%api_testing.prj/Keywords/com/ws/Validate.groovy: 7 Groovy:unable to resolve class internal.GlobalVariable
/%tmp%katalon_execute%project%api_testing.prj/Keywords/com/ws/ValidateClimo.groovy: 7 Groovy:unable to resolve class internal.GlobalVariable
/%tmp%katalon_execute%project%api_testing.prj/Keywords/com/ws/ValidateTrans.groovy: 7 Groovy:unable to resolve class internal.GlobalVariable
Parsing custom keywords...
/%tmp%katalon_execute%project%api_testing.prj/Libs/CustomKeywords.groovy: 24 Groovy:unable to resolve class com.ws.EveritValidator
/%tmp%katalon_execute%project%api_testing.prj/Libs/CustomKeywords.groovy: 24 Groovy:unable to resolve class com.ws.EveritValidator
Project 'api_testing' opened
com.kms.katalon.execution.exception.ExecutionException: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Test suite 'Test Suites/API Regression' not found.
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:155)
at com.kms.katalon.execution.console.ConsoleExecutor.execute(ConsoleExecutor.java:77)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:135)
at com.kms.katalon.console.application.Application.runConsole(Application.java:76)
at com.kms.katalon.core.application.Application.runConsole(Application.java:80)
at com.kms.katalon.core.application.Application.start(Application.java:63)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
Caused by: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Test suite 'Test Suites/API Regression' not found.
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.throwInvalidTestSuiteIdException(TestSuiteLauncherOptionParser.java:246)
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getTestSuite(TestSuiteLauncherOptionParser.java:241)
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.buildRunConfig(TestSuiteLauncherOptionParser.java:173)
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:152)
... 18 more
+ ret_code=2
++ id -u
++ id -g
+ chown -R 0:0 /katalon/katalon/source/report
+ chmod -R 777 /katalon/katalon/source/report
+ ls /katalon/katalon/source/report
JUnit_Report.xml execution.properties execution.uuid execution0.log report.csv report.html
+ cd /
+ exit 2
--