Need help with Katalon Running on Docker in Gitlab

Hi Guys,

A while back, I was running my Katalon tests on Gitlab, but with the recent updates on the Katalon Docker image and Katalon itself, my tests won’t run anymore. I tried googling the errors and applying the fix but I still can’t make it work. Below are the logs that I am getting. I hope someone can help me out. Thanks!

e[0KRunning with gitlab-runner 11.4.2 (cf91d5e1)e[0;me[0K  on docker-auto-scale 72989761e[0;me[0KUsing Docker executor with image registry.gitlab.com/2key/qa-automation:latest ...e[0;me[0KPulling docker image registry.gitlab.com/2key/qa-automation:latest ...e[0;me[0KUsing docker image sha256:8576e90fe6f362013978bf4018aa60db645591ace96548fa5153bda830494914 for registry.gitlab.com/2key/qa-automation:latest ...e[0;msection_start:1541918313:prepare_scripte[0KRunning on runner-72989761-project-7779446-concurrent-0 via runner-72989761-srm-1541918180-a864c5fb...section_end:1541918314:prepare_scripte[0Ksection_start:1541918314:get_sourcese[0Ke[32;1mCloning repository...e[0;mCloning into '/builds/2key/qa-automation'...e[32;1mChecking out b3ec38ab as develop...e[0;me[32;1mSkipping Git submodules setupe[0;msection_end:1541918328:get_sourcese[0Ksection_start:1541918328:restore_cachee[0Ksection_end:1541918329:restore_cachee[0Ksection_start:1541918329:download_artifactse[0Ksection_end:1541918331:download_artifactse[0Ksection_start:1541918331:build_scripte[0Ke[32;1m$ mkdir -p /root/.cache/dconfe[0;me[32;1m$ chmod 777 -R /root/.cache/e[0;me[32;1m$ cp -r /builds/2key/qa-automation/. $KATALON_KATALON_ROOT_DIR/source/e[0;me[32;1m$ $KATALON_KATALON_ROOT_DIR/scripts/katalon-execute.she[0;m+ echo 'Starting Katalon Studio'Starting Katalon Studio+ cat /katalon/versionGoogle Chrome 70.0.3538.77 Mozilla Firefox 63.0Katalon Studio 5.8.5++ pwd+ current_dir=/builds/2key/qa-automation+ workspace_dir=/tmp/katalon_execute/workspace+ mkdir -p /tmp/katalon_execute/workspace+ chmod -R 777 /tmp/katalon_execute/workspace+ source_dir=/katalon/katalon/source+ '[' -d /katalon/katalon/source ']'+ project_dir=/tmp/katalon_execute/project+ mkdir -p /tmp/katalon_execute/project+ cp -r /katalon/katalon/source /tmp/katalon_execute/project+ touch /tmp/katalon_execute/project/.classpath+ chmod -R 777 /tmp/katalon_execute/project+ report_dir=/katalon/katalon/report+ '[' -d /katalon/katalon/report ']'+ report_dir=/katalon/katalon/source/report+ mkdir -p /katalon/katalon/source/report++ find /tmp/katalon_execute/project -maxdepth 5 -type f -name '*.prj' -print -quit+ project_file=/tmp/katalon_execute/project/source/2key.prj+ args=("$KATALON_KATALON_INSTALL_DIR/katalon" "$@")+ args+=("-runMode=console")+ args+=("-reportFolder=$report_dir")+ args+=("-projectPath=$project_file")+ cd /tmp/katalon_execute/workspace+ sudo xvfb-run -s '-screen 0 1024x768x24' /opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/source/report -projectPath=/tmp/katalon_execute/project/source/2key.prjRequest sent successfully.Opening project file: /tmp/katalon_execute/project/source/2key.prjStarting Groovy-Eclipse compiler resolver.  Specified compiler level: unspecified161 2.4.7.xx-201611170128-e46 = ACTIVE/%tmp%katalon_execute%project%source%2key.prj/Scripts/Business Page/Business Tab/Notifications/Blog Notification Setting/Script1536575940767.groovy: 5 Groovy:unable to resolve class com.kms.katalon.core.checkpoint.Checkpoint/%tmp%katalon_execute%project%source%2key.prj/Scripts/Business Page/Business Tab/Notifications/Blog Notification Setting/Script1536575940767.groovy: 6 Groovy:unable to resolve class com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords/%tmp%katalon_execute%project%source%2key.prj/Test Suites/Wallet Flow Tests.groovy: 50 Groovy:class com.kms.katalon.core.annotation.SetupTestCase is not an annotation in @com.kms.katalon.core.annotation.SetupTestCase/%tmp%katalon_execute%project%source%2key.prj/Test Suites/Wallet Flow Tests.groovy: 58 Groovy:class com.kms.katalon.core.annotation.TearDownTestCase is not an annotation in @com.kms.katalon.core.annotation.TearDownTestCaseParsing custom keywords...Generating global variables...Project '2key' openedMissing required argument(s): {-testSuitePath, -browserType} or {-testSuiteCollectionPath}.+ ret_code=4++ id -u++ id -g+ sudo chown -R 0:0 /katalon/katalon/source/report+ sudo chmod -R 777 /katalon/katalon/source/report+ ls /katalon/katalon/source/report+ cd /builds/2key/qa-automation+ exit 4section_end:1541918357:build_scripte[0Ksection_start:1541918357:after_scripte[0Ksection_end:1541918358:after_scripte[0Ksection_start:1541918358:upload_artifacts_on_failuree[0Ksection_end:1541918360:upload_artifacts_on_failuree[0Ke[31;1mERROR: Job failed: exit code 1e[0;m

I had the same problem. With 5.8.5, they changed the way katalon is invoked. Specifics may vary, so refer to their documentation which describes how it has change.