GitLab - Running the tests using docker

Hello all,

I am trying to run a test using gitlab + katalon docker image. This is how my .yml look

image: katalonstudio/katalon



- docker


- -browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePath=“Test\ Suites/HelpSeniors” -executionProfile=“Example-Externalsite”

It appears that projectPath is automatically set, execute command is copying the project into a tmp folder and trying to run and at some point, it is not seeing the correct project path. Could you please guide me on how to execute this? My idea is to run the tests on a schedule on the gitlab’s cloud.
Following the log. Thanks - Jag

Running with gitlab-runner 11.5.0-rc1 (e900028d)
on docker-auto-scale ed2dce3a
Using Docker executor with image katalonstudio/katalon …
Pulling docker image katalonstudio/katalon …
Using docker image sha256:8629c68173571ccc3a0d9b6ea61389cb565e3be637c6cbcd735ac682da1532a2 for katalonstudio/katalon …
Running on runner-ed2dce3a-project-9494366-concurrent-0 via runner-ed2dce3a-srm-1542741463-085ecc90…
Cloning repository…
Cloning into ‘/builds/Jag-Medullan/katalon-test’…
Checking out 34a4bc5d as master…
Skipping Git submodules setup
$ -browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePath=“Test\ Suites/HelpSeniors” -executionProfile=“Example-Externalsite”
+ echo ‘Starting Katalon Studio’
Starting Katalon Studio
+ cat /katalon/version
Google Chrome 70.0.3538.102
Mozilla Firefox 63.0
Katalon Studio 5.8.6
++ pwd
+ current_dir=/builds/Jag-Medullan/katalon-test
+ 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 ‘]’
++ pwd
+ source_dir=/builds/Jag-Medullan/katalon-test
+ project_dir=/tmp/katalon_execute/project
+ mkdir -p /tmp/katalon_execute/project
+ cp -r /builds/Jag-Medullan/katalon-test/wanda /tmp/katalon_execute/project
+ touch /tmp/katalon_execute/project/.classpath
+ chmod -R 777 /tmp/katalon_execute/project
+ rm -rf /tmp/katalon_execute/project/bin
+ rm -rf /tmp/katalon_execute/project/Libs
+ ls -la /tmp/katalon_execute/project
total 28
drwxrwxrwx. 3 root root 4096 Nov 20 19:19 .
drwxr-xr-x. 4 root root 4096 Nov 20 19:19 …
-rwxrwxrwx. 1 root root 0 Nov 20 19:19 .classpath
drwxrwxrwx. 13 root root 4096 Nov 20 19:19 wanda
+ report_dir=/katalon/katalon/report
+ ‘[’ -d /katalon/katalon/report ‘]’
+ report_dir=/builds/Jag-Medullan/katalon-test/report
+ mkdir -p /builds/Jag-Medullan/katalon-test/report
+ args=(“$KATALON_KATALON_INSTALL_DIR/katalon” “$@”)
+ args+=(“-runMode=console”)
+ args+=(“-reportFolder=$report_dir”)
+ args+=(“-projectPath=$project_dir”)
+ cd /tmp/katalon_execute/workspace
+ xvfb-run -s ‘-screen 0 1024x768x24’ /opt/katalonstudio/katalon -browserType=Chrome -retry=0 -statusDelay=15 ‘-testSuitePath=Test\ Suites/HelpSeniors’ -executionProfile=Example-Externalsite -runMode=console -reportFolder=/builds/Jag-Medullan/katalon-test/report -projectPath=/tmp/katalon_execute/project
Request sent successfully.
Opening project file: /tmp/katalon_execute/project
Invalid argument: Cannot find project ‘/tmp/katalon_execute/project’.
+ ret_code=4
++ id -u
++ id -g
+ chown -R 0:0 /builds/Jag-Medullan/katalon-test/report
+ chmod -R 777 /builds/Jag-Medullan/katalon-test/report
+ ls /builds/Jag-Medullan/katalon-test/report
+ cd /builds/Jag-Medullan/katalon-test
+ exit 4
ERROR: Job failed: exit code 1

I am all set! I had to cd to the project folder where .prj file can be found. It is so wonderful that we can run Katalon tests in cloud both on Firefox and Chrome! Thank you, guys!

Can you please post your command?

cd Your Folder && -browserType=“Firefox (headless)” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/Your Test Suite” -executionProfile=“Execution Profile”


Thank you @Jag.

@nadim96 we also has a sample here