Dear Gurus,
thanks for docker image of katalon,it helped me to execute test case using Gitlab to prove Gitlab works well with katalon,but if you see Gitlab console log below ,for every execution Gitlab downloading katalon image ,because of this test execution time is getting prolonged,whereas actual test case is much less time consuming
Question is can this step be removed ,i mean Gitlab downloading image everytime of docker image?
Here is the contents of .gitlab-ci.yml used in Gitlab
run_katalon_test_suite:
tags:
\- docker
script:
\- chmod 755 run_chrome.sh
\- ./run_chrome.sh
Here is GitLab console log:
Running with gitlab-runner 11.3.1 (0aa5179e)
on WotC-Docker-ip-10-102-0-41 54e6ded9
Using Docker executor with image gitlab/dind:latest …
Pulling docker image gitlab/dind:latest …
Using docker image sha256:cc674e878f23bdc3c36cc37596d31adaa23bca0fc3ed18bea9b59abc638602e1 for gitlab/dind:latest …
Running on runner-54e6ded9-project-143-concurrent-0 via ip-10-102-0-41…
Cloning repository…
Cloning into ‘/builds/core-systems/Katalon-Project-Integration’…
Checking out 527aca44 as master…
Skipping Git submodules setup
$ chmod 755 run_chrome.sh
$ ./run_chrome.sh
++ pwd
+ current_dir=/builds/core-systems/Katalon-Project-Integration
+++ dirname ./run_chrome.sh
++ cd .
++ pwd
+ project_dir=/builds/core-systems/Katalon-Project-Integration
+++ dirname ./run_chrome.sh
++ cd ./…
++ pwd
+ reports_dir=/builds/core-systems/reports/chrome
+ rm -rfv /builds/core-systems/reports/chrome
+ mkdir -p /builds/core-systems/reports/chrome
+ katalon_opts=‘-browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/EventReservation”’
+ docker run --rm -v /builds/core-systems/Katalon-Project-Integration:/katalon/katalon/source:ro -v /builds/core-systems/reports/chrome:/katalon/katalon/report -e ‘KATALON_OPTS=-browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/EventReservation”’ katalonstudio/katalon
Unable to find image ‘katalonstudio/katalon:latest’ locally
latest: Pulling from katalonstudio/katalon
3b37166ec614: Pulling fs layer
504facff238f: Pulling fs layer
ebbcacd28e10: Pulling fs layer
c7fb3351ecad: Pulling fs layer
2e3debadcbf7: Pulling fs layer
3af06ecdeff0: Pulling fs layer
f018e3b2a32f: Pulling fs layer
1dec2352fc94: Pulling fs layer
143617eedf08: Pulling fs layer
169f48ad3eff: Pulling fs layer
62babcabe86d: Pulling fs layer
92f63f8763ba: Pulling fs layer
6e66b78d9591: Pulling fs layer
e6072f6fcb2a: Pulling fs layer
f80ba2ced404: Pulling fs layer
143617eedf08: Waiting
169f48ad3eff: Waiting
62babcabe86d: Waiting
92f63f8763ba: Waiting
6e66b78d9591: Waiting
e6072f6fcb2a: Waiting
f80ba2ced404: Waiting
2e3debadcbf7: Waiting
c7fb3351ecad: Waiting
3af06ecdeff0: Waiting
f018e3b2a32f: Waiting
1dec2352fc94: Waiting
ebbcacd28e10: Verifying Checksum
ebbcacd28e10: Download complete
504facff238f: Verifying Checksum
504facff238f: Download complete
c7fb3351ecad: Verifying Checksum
c7fb3351ecad: Download complete
3b37166ec614: Verifying Checksum
3b37166ec614: Download complete
2e3debadcbf7: Verifying Checksum
2e3debadcbf7: Download complete
3af06ecdeff0: Verifying Checksum
3af06ecdeff0: Download complete
f018e3b2a32f: Verifying Checksum
f018e3b2a32f: Download complete
1dec2352fc94: Verifying Checksum
1dec2352fc94: Download complete
143617eedf08: Verifying Checksum
143617eedf08: Download complete
62babcabe86d: Verifying Checksum
62babcabe86d: Download complete
6e66b78d9591: Verifying Checksum
6e66b78d9591: Download complete
92f63f8763ba: Verifying Checksum
92f63f8763ba: Download complete
e6072f6fcb2a: Verifying Checksum
e6072f6fcb2a: Download complete
3b37166ec614: Pull complete
169f48ad3eff: Verifying Checksum
169f48ad3eff: Download complete
f80ba2ced404: Verifying Checksum
f80ba2ced404: Download complete
504facff238f: Pull complete
ebbcacd28e10: Pull complete
c7fb3351ecad: Pull complete
2e3debadcbf7: Pull complete
3af06ecdeff0: Pull complete
f018e3b2a32f: Pull complete
1dec2352fc94: Pull complete
143617eedf08: Pull complete
169f48ad3eff: Pull complete
62babcabe86d: Pull complete
92f63f8763ba: Pull complete
6e66b78d9591: Pull complete
e6072f6fcb2a: Pull complete
f80ba2ced404: Pull complete
Digest: sha256:2eb4ec40f64dde3d5f3e162e722e165db83869d0c82b1e239e7b6854e1bf07ea
Status: Downloaded newer image for katalonstudio/katalon:latest
Google Chrome 69.0.3497.100
Mozilla Firefox 62.0
Katalon Studio 5.7.1
+ echo ‘Starting Katalon Studio’
Starting Katalon Studio
++ pwd
+ current_dir=/
+ tmp_dir=/katalon/katalon/tmp
+ mkdir -p /katalon/katalon/tmp
+ chmod -R 777 /katalon/katalon/tmp
+ project_dir=/katalon/katalon/project
+ mkdir -p /katalon/katalon/project
+ cp -r /katalon/katalon/source/. /katalon/katalon/project
+ touch /katalon/katalon/project/.classpath
+ chmod -R 777 /katalon/katalon/project
+ report_dir=/katalon/katalon/report
+ mkdir -p /katalon/katalon/report
++ find /katalon/katalon/project -maxdepth 1 -type f -name ‘*.prj’
+ project_file=/katalon/katalon/project/Katalon-Project-Integration.prj
+ cmd=‘/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath=/katalon/katalon/project/Katalon-Project-Integration.prj -browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/EventReservation”’
+ /katalon/base/scripts/xvfb.sh start
+ XVFB=/usr/bin/Xvfb
+ XVFBARGS=‘:99 -screen 0 1024x768x24 -fbdir /var/run -ac’
+ PIDFILE=/var/run/xvfb.pid
+ case “$1” in
+ echo -n ‘Starting virtual X frame buffer :99 1024x768x24’
Starting virtual X frame buffer :99 1024x768x24+ start-stop-daemon --start --quiet --pidfile /var/run/xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb – :99 -screen 0 1024x768x24 -fbdir /var/run -ac
+ echo .
+ exit 0
+ cd /katalon/katalon/tmp
+ eval ‘/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath=/katalon/katalon/project/Katalon-Project-Integration.prj -browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/EventReservation”’
++ /opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath=/katalon/katalon/project/Katalon-Project-Integration.prj -browserType=Chrome -retry=0 -statusDelay=15 ‘-testSuitePath=Test Suites/EventReservation’
.
Request sent successfully.
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
150 2.4.7.xx-201611170128-e46 = ACTIVE
/%katalon%katalon%project%Katalon-Project-Integration.prj/Keywords/com/ea/utilities/CommonUtilities1.groovy: 20 Groovy:unable to resolve class internal.GlobalVariable
/%katalon%katalon%project%Katalon-Project-Integration.prj/Keywords/com/ea/utilities/CommonUtilities1.groovy: 20 Groovy:unable to resolve class internal.GlobalVariable
--------------------------------------------------------------------------------
Test Suites/EventReservation - Chrome - 20181017_213139…0/1(0%)
--------------------------------------------------------------------------------
Request sent successfully.