How do I run Katalon test suite in Jenkins inside Docker

╄→尐↘猪︶ㄣ 提交于 2019-12-05 01:57:23

EDIT - New answer from Katalon support

I got a new response from Katalon support that says:

First of all, I would to sorry for my answer due to I'm not giving out the proper one based on your question. I've reviewed again your question and see Katalon Studio have Linux version (http://download.katalon.com/4.8.0/Katalon_Studio_Linux_64-4.8.tar.gz) for console mode execution and it's ideally to package it into your dockerfile.

That's more like it, and with the documentation here it should be pretty straightforward to get it working with Docker:

https://docs.katalon.com/display/KD/Console+Mode+Execution

Hope this answer resolve your question better :).

END EDIT


ORIGINAL

I created a ticket on the Katalon Studio website asking this same question, and I got this (laughable) response:

First of all, there is no Dockerfile for Katalon Studio. It will be hard and complicated to do this and we also do not have a plan to do it in the future :). But we will try to consider with your request to see if there is any applicable adjustment to this case.

In other words, no Docker solution. It's too bad that we can't use it for our CI stuff, since I had good results with the prototyping I did.

Oh well.

Katalon Studio does have a dedicated version for Linux (http://download.katalon.com/4.8.0/Katalon_Studio_Linux_64-4.8.tar.gz). It utilizes console mode of Katalon Studio and of course you can package it inside your Jenkins container. This approach will adapt with your scenario :).

You can find it here and on Docker Hub. But I don't like that it need to be activated by email/password. So it make the build slow down. I intend to make my own docker image including my activated Katalon studio. They seems not support CI really well.

https://github.com/katalon-studio/katalon-studio-docker

Okay i found it out: use the "sudo docker cp /sourcefolder/Katalon_folder/ ContainerId:/destination_folder"

The same goes for the script. Next step is to install Firefox / geckodriver.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!