Hello all,
I am trying to run a test using gitlab + katalon docker image. This is how my .yml look
image: katalonstudio/katalon
run_katalon_test_suite:
tags:
- docker
script:
- katalon-execute.sh -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
$ katalon-execute.sh -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