How to run Katalon test suite in Jenkins inside Docker

I have a Katalon test suite and it works great in the user interface and from the CLI on the machine where I have Katalon installed.

I have a Jenkins CI server running in a docker container and I would like to set up a task to run my test suite on this Jenkins server.

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

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

+10
source share
5 answers

EDIT - New answer from Catalan support

I received a new response from Katalon Support that says:

First of all, I would regret my answer, because I do not give the correct answer to your question. I reviewed your question again and see that Katalon Studio has a version for Linux ( http://download.katalon.com/4.8.0/Katalon_Studio_Linux_64-4.8.tar.gz ) for execution in console mode, and ideally it should be packaged in your docker file.,

I like it more, and with the documentation here it should be pretty simple to get it to work with Docker:

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

Hope this answer resolves your question better :).

END OF EDITING


ORIGINAL

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

Firstly, there is no Dockerfile for Katalon Studio. It will be difficult and difficult to do, and we also have no plan to do it in the future :). But we will try to review with your request to see if there are any applicable adjustments in this case.

In other words, there is no Docker solution. It is a pity that we can not use it for our CI, since I had good results with the prototypes that I made.

Well.

+8
source

Katalon Studio has a special version for Linux ( http://download.katalon.com/4.8.0/Katalon_Studio_Linux_64-4.8.tar.gz ). It uses the console mode of Katalon Studio and, of course, you can pack it in a Jenkins container. This approach will be adapted to your scenario :).

+6
source

You can find it here and in the Docker Hub. But I do not like that it needs to be activated by email / password. Therefore, it slows down the work. I intend to make my own portrayal of dockers, including my activated Katalon studio. They do not seem to support CI very well.

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

+2
source

@ Vinh Nguyen: Thank you for your answer, but can you provide the correct source of information on how to pack Katalon Studio in the Jenkins dock container? I thought I would try to mount the mount point, but I do not know how to connect the docker container to the Debian 8 base file system (Jesse).

0
source

Ok, I figured it out: use sudo docker cp / sourcefolder / Katalon_folder / ContainerId: / destination_folder

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

0
source

Source: https://habr.com/ru/post/1271741/


All Articles