Hello everyone, I trying run pipeline with an runner from gitlab-runner, in my project folder have gitlab-ci.yml with the following:
image: katalonstudio/katalon
stages:
- test
run_katalon_test_suite:
stage: test
script:
- katalon-execute.sh -retry=0 -testSuiteCollectionPath=“Test Suites/Test-Suite-Collection-Name”
When I was any push to gitlab I get the following logs:
Running with gitlab-runner 12.1.0 (de7731dd)
on Gitlab- GCP Runner-gitlabrunner-instance-001-56bp-001 ZrFTMyGx
Using Docker executor with image katalonstudio/katalon …
Pulling docker image katalonstudio/katalon …
Using docker image sha256:bdf497ab88ea210a83bb212c5d261f0df6a6d79aacb4edb8e9ca8202ebf73c34 for katalonstudio/katalon …
Running on runner-ZrFTMyGx-project-103-concurrent-0 via 43bfc462ae1c…
Fetching changes with git depth set to 50…
Reinitialized existing Git repository in /builds/automation-projects/integracion-maestros/.git/
From https://gitlab.com/automation-projects/integracion-maestros
5eb302e…ef34025 develop → origin/develop
Checking out ef34025b as develop…
Skipping Git submodules setup
$ katalon-execute.sh -retry=0 -testSuiteCollectionPath=“Test Suites/VerifyIntegrationMaster”
Starting Katalon Studio
- echo ‘Starting Katalon Studio’
- cat /katalon/version
Google Chrome 77.0.3865.90
Mozilla Firefox 69.0
Katalon Studio 6.3.0
++ pwd - current_dir=/builds/automation-projects/integracion-maestros
- 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/automation-projects/integracion-maestros
- project_dir=/tmp/katalon_execute/project
- mkdir -p /tmp/katalon_execute/project
- cp -r /builds/automation-projects/integracion-maestros/Dockerfile /builds/automation-projects/integracion-maestros/web_service_test /tmp/katalon_execute/project
++ find /tmp/katalon_execute/project -name ‘*.prj’ - project_prj_file=/tmp/katalon_execute/project/web_service_test/API_Integration_Master.prj
- cd /tmp/katalon_execute/project
- ‘[’ -f /tmp/katalon_execute/project/build.gradle ‘]’
- cd /builds/automation-projects/integracion-maestros
- 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 16
drwxrwxrwx 3 root root 4096 Sep 23 20:20 .
drwxr-xr-x 4 root root 4096 Sep 23 20:20 …
-rwxrwxrwx 1 root root 0 Sep 23 20:20 .classpath
-rwxrwxrwx 1 root root 29 Sep 23 20:20 Dockerfile
drwxrwxrwx 14 root root 4096 Sep 23 20:20 web_service_test - report_dir=/katalon/katalon/report
- ‘[’ -d /katalon/katalon/report ‘]’
- report_dir=/builds/automation-projects/integracion-maestros/report
- mkdir -p /builds/automation-projects/integracion-maestros/report
- args=(“$KATALON_KATALON_INSTALL_DIR/katalon” “$@”)
- args+=(“-runMode=console”)
- args+=(“-reportFolder=$report_dir”)
- args+=(“-projectPath=$project_prj_file”)
- cd /tmp/katalon_execute/workspace
- xvfb-run -s ‘-screen 0 1024x768x24’ /opt/katalonstudio/katalon -retry=0 ‘-testSuiteCollectionPath=Test Suites/VerifyIntegrationMaster’ -runMode=console -reportFolder=/builds/automation-projects/integracion-maestros/report -projectPath=/tmp/katalon_execute/project/web_service_test/API_Integration_Master.prj
Katalon workspace folder is set to default location: /opt/katalonstudio/config
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
170 2.4.7.xx-201611170128-e46 = ACTIVE
INFO: Katalon Version: 6.3.0
INFO: Command-line arguments: -retry=0 -testSuiteCollectionPath=Test Suites/VerifyIntegrationMaster -runMode=console -reportFolder=/builds/automation-projects/integracion-maestros/report -projectPath=/tmp/katalon_execute/project/web_service_test/API_Integration_Master.prj
INFO: User working dir: /tmp/katalon_execute/workspace
INFO: User home: /root
INFO: Java vendor: Private Build
INFO: Java version: 1.8.0_222
INFO: Local OS: Linux 64bit
INFO: CPU load: 97%
INFO: Total memory: 3955 MB
INFO: Free memory: 279 MB
Delete folder: bin
Delete folder: Libs
Opening project file: /tmp/katalon_execute/project/web_service_test/API_Integration_Master.prj
Parsing custom keywords in Plugins folder…
Generating global variables…
Parsing custom keywords…
Project ‘API_Integration_Master’ opened
chromedriver is located at default location: /opt/katalonstudio/configuration/resources/drivers/chromedriver_linux64/chromedriver. In case your browser is updated to a newer version, please use this command to update chromdriver: --config -webui.autoUpdateDrivers=true
Test Suites/VerifyIntegrationMaster - 20190923_202107…0/3(0%)
Test Suites/WebServiceFlow - Chrome (headless) - 20190923_202107…0/3(0%)
Test Suites/VerifyIntegrationMaster - 20190923_202107…1/3(33%)
Test Suites/WebServiceFlow - Chrome (headless) - 20190923_202107…1/3(33%)
Test Suites/VerifyIntegrationMaster - 20190923_202107…2/3(66%)
Test Suites/WebServiceFlow - Chrome (headless) - 20190923_202107…2/3(66%)
Launcher status after execution process completed: Running
Start writing execution.uuid file to folder: /tmp/katalon_execute/project/web_service_test/Reports/20190923_202107/WebServiceFlow/20190923_202107
Copying report to folder /builds/automation-projects/integracion-maestros/report/20190923_202107…
For real-time monitoring and better reporting capabilities please integrate this project with Katalon Analytics (more details at https://docs.katalon.com/katalon-analytics/docs/integration-with-katalon-studio.html#enable-integration)
Test Suites/VerifyIntegrationMaster - 20190923_202107…3/3(100%)
Test Suites/WebServiceFlow - Chrome (headless) - 20190923_202107…3/3(100%)
- ret_code=1
++ id -u
++ id -g - chown -R 0:0 /builds/automation-projects/integracion-maestros/report
- chmod -R 777 /builds/automation-projects/integracion-maestros/report
- ls /builds/automation-projects/integracion-maestros/report
20190923_202107 - cd /builds/automation-projects/integracion-maestros
- exit 1
ERROR: Job failed: exit code 1
I tried with Dockerfile and ENTRYPOINT but that doesn’t work, If anyone have an solution for this I will appreciate