How do I run Katalon test suite in Jenkins inside Docker

China☆狼群 提交于 2019-12-10 02:52:40

问题


I have a Katalon test suite setup and it runs great in the UI and from the CLI on the machine where I have Katalon studio installed.

I have Jenkins CI server running in a docker container, and I would like to setup a job to run my test suite on that Jenkins server.

What runtime do I need on the Jenkins server so it can run a Katalon job? Is there a runtime or a plugin for Jenkins for this?

If not, is there a docker container for Katalon that I can use to remotely run the job via jenkins, like the SonarQube stuff?


回答1:


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.




回答2:


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 :).




回答3:


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




回答4:


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.



来源:https://stackoverflow.com/questions/46183647/how-do-i-run-katalon-test-suite-in-jenkins-inside-docker

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