• Stars
    star
    119
  • Rank 297,930 (Top 6 %)
  • Language
    Groovy
  • Created almost 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Docker images for Katalon Studio and other frameworks

Katalon Studio Docker Image

The following how-to guide is for running Katalon Studio test with Katalon Docker Image (KDI) version 7.2.1 onwards.

Preconditions

Step 1: Pull KDI

  • Pull command docker pull katalonstudio/katalon

  • If you want to check which version of Google Chrome and Mozilla Firefox the KDI supports, use the following command: docker run -t --rm katalonstudio/katalon cat /katalon/version. For example, here's the returned output.


$ docker run -t --rm katalonstudio/katalon cat /katalon/version

+ echo Entrypoint

Entrypoint

+ '[' -z '' ']'

+ exec cat /katalon/version

Mozilla Firefox 88.0

Google Chrome 102.0.5005.115

Microsoft Edge 102.0.1245.41

Katalon Studio

Step 2: Run your test with KDI

3.1 Prepare your command

3.1.1 Use the command builder to prevent syntax errors. Here’s a sample command generated by the command builder:

./katalonc -noSplash -runMode=console -projectPath="<Your project path>" -retry=0 -testSuiteCollectionPath="Test Suites/TS_RegressionTestCollection" -apiKey="<Your API key>"

3.1.2 Replace

./katalonc -noSplash -runMode=console -projectPath="<Your project path>"

with

docker run -t --rm -v "$(pwd)":/tmp/project katalonstudio/katalon katalonc.sh -projectPath=/tmp/project

3.2 Run your test with KDI

Inside your test project directory, run the command. Here’s an example:

docker run -t --rm -v "$(pwd)":/tmp/project katalonstudio/katalon katalonc.sh -projectPath=/tmp/project -retry=0 -testSuiteCollectionPath="Test Suites/TS_RegressionTestCollection" -apiKey="<Your API key>"

katalonc.sh command will start Katalon Studio and other necessary components. All Katalon Studio console mode arguments are accepted except -runMode.

Configure Proxy

If you need to configure proxy for Katalon Studio, refer to Proxy Options provided on Katalon docs.

Do not forget to put --config before the proxy configuration. For example:

docker run -t --rm -v "$(pwd)":/katalon/katalon/source katalonstudio/katalon katalonc.sh -projectPath=/katalon/katalon/source -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest" -apikey=<YOUR_API_KEY> --config -proxy.option=MANUAL_CONFIG -proxy.server.type=HTTP -proxy.server.address=192.168.1.221 -proxy.server.port=8888

Prevent user permission issue on your machine

You can also run the test under the current user ID using the environment variable KATALON_USER_ID. This will help avoid permission issues when accessing artifacts generated after the test execution.

  • Run $ id -u $USER and copy/paste the output in KATALON_USER_ID=id -u $USER. Here's an example
$ id -u $USER

665056758
  • Add it to your command. For example: docker run -t --rm -e KATALON_USER_ID=665056758 -v "$(pwd)":/tmp/project katalonstudio/katalon katalonc.sh -projectPath=/tmp/project

Display configuration

This image makes use of Xvfb with the following configurations which are configurable with docker run:

ENV DISPLAY=:99
ENV DISPLAY_CONFIGURATION=1024x768x24

Jenkins

Please see the sample Jenkinsfile.

CircleCI

This image is compatible with CircleCI 2.0. Please see the sample config.yml.

Sample configurations for CI tools

Please visit https://github.com/katalon-studio-samples/ci-samples for a sample project with configurations for some CI tools.

Build custom images

The Katalon Runtime Engine's katalonc and its companion script katalonc.sh were added to $PATH. You can make use of these files to build custom images.

Companion product: Katalon TestOps

Katalon TestOps is a web-based application that provides dynamic perspectives and an insightful look at your automation testing data. You can leverage your automation testing data by transforming and visualizing your data; analyzing test results; seamlessly integrating with such tools as Katalon Studio and Jira; maximizing the testing capacity with remote execution.

Deprecated - Simple use case for KDI before 7.2.1

Inside the test project directory, execute the following command:

docker run -t --rm -v "$(pwd)":/katalon/katalon/source katalonstudio/katalon katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest" -apikey=<YOUR_API_KEY>

katalon-execute.sh

This command will start Katalon Studio and other necessary components. All Katalon Studio console mode arguments are accepted except -runMode, -reportFolder, and -projectPath.

/katalon/katalon/source

katalon-execute.sh will look for the test project inside this directory.

If this bind mount is not used, katalon-execute.sh will look for the test project inside the current working directory (defined with docker run's -w argument)..

docker run -t --rm -v "$(pwd)":/tmp/source -w /tmp/source katalonstudio/katalon katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest" -apikey=<YOUR_API_KEY>

Reports

Reports will be written to the report directory.

Docker Toolbox for Windows

Please make sure directories have been shared and configured correctly https://docs.docker.com/toolbox/toolbox_install_windows/#optional-add-shared-directories.

If bind mount /katalon/katalon/report is used, the test reports will be written to that location on the host machine.

More Repositories

1

katalon-studio

Shell
332
star
2

katalon-recorder

JavaScript
314
star
3

katalon-recorder-samples

Samples for Katalon Recorder
HTML
52
star
4

katalium

Java
50
star
5

katalon-studio-testing-framework

Katalon Studio Open-source Testing Framework
Java
42
star
6

katalon-studio-platform

Open source platform to develop plugins for Katalon Studio
Java
29
star
7

katalium-sample

Java
16
star
8

katalon-recorder-sample-plugin

This is a sample plugin for Katalon Recorder 3.4.0
JavaScript
14
star
9

katalon-testops

Manage automation results, like you test it manually
12
star
10

katalon-studio-github-action

Katalon Studio Github Action
JavaScript
11
star
11

katalium-server

Java
11
star
12

katalon-gradle-plugin

Katalon Studio Gradle plugin
Java
9
star
13

katalon-recorder-helper

Helper for Katalon Recorder
Java
7
star
14

katalon-studio-basic-report-plugin

Java
6
star
15

katalium-vscode-extension

TypeScript
6
star
16

katalon-agent

JavaScript
6
star
17

katalon-azure-devops-extension

JavaScript
5
star
18

sample-web-aut

Sample application for trying Web testing tools
HTML
5
star
19

katalon-excel-keyword

Project to store the source code, sample code of Katalon plug-ins for Read and Write Excel keywords
Groovy
5
star
20

katalon-studio-ashot-plugin

Groovy
4
star
21

katalon-studio-jira-plugin

Java
4
star
22

report-uploader

Katalon Report Uploader
Java
3
star
23

katalon-demo-cura

PHP
3
star
24

katalon-studio-docker

DEPRECATED - Please use the latest Docker image at https://hub.docker.com/r/katalonstudio/katalon
HTML
3
star
25

katalon-studio-slack-plugin

Java
3
star
26

cloud-studio

2
star
27

katalon-studio-smart-xpath-plugin

Java
2
star
28

sideload

Groovy
2
star
29

katalon-studio-uploadfile-plugin

Rust
2
star
30

testops-report-js

Katalon TestOps JavaScript Reporters
TypeScript
2
star
31

katalon-studio-pdf-keywords-plugin

Groovy
2
star
32

katalon-studio-chrome-devtools-protocol-plugin

Integrate Chrome Devtools Protocol with Katalon Studio
Groovy
2
star
33

katalon-studio-jbehave-plugin

Groovy
1
star
34

katalon-studio-select2-keywords-plugin

Groovy
1
star
35

testops-testng

TestNG Reporter for submitting test results to Katalon TestOps.
Java
1
star
36

katalon-studio-testlink-plugin

Groovy
1
star
37

katalon-studio-microsoftteam-keywords-plugin

Groovy
1
star
38

katalon-studio-datetime-plugin

Groovy
1
star
39

katalon-proxy-tunnel-client

Release new version of katalon-proxy-tunnel-client which can be used to create a tunnel proxy to test private site
1
star
40

katalon-windows-test

Katalon Studio test project using Windows desktop app testing
Groovy
1
star
41

utils

Utilities to work with Katalon Studio
Java
1
star
42

katalon-studio-saucelabs-plugin

Groovy
1
star
43

record-and-playback-sample-project

This is the project that we used when creating the Katalon Studio for Beginners: Create Automated Tests with Record & Playback course.
Groovy
1
star
44

katalon-studio-jmeter-integration-plugin

Groovy
1
star
45

kr-cli

A public repo for Katalon Recorder Command-Line Runner
JavaScript
1
star
46

katalon-studio-sample-plugin

An example plugin of Katalon Studio for beginner
Java
1
star
47

sample-web-service-aut

Sample application for trying API testing tools
Java
1
star
48

katalon-studio-result-summary-test-listeners-plugin

Groovy
1
star
49

katalon-keyword-tests

Collection of tests to test Katalon built-in keywords.
Rust
1
star
50

sample-windows-application-test

Sample Katalon Studio testing project for Windows 10 application
Groovy
1
star
51

Upload-File-with-Drag-and-Drop-Sample-Project

Rust
1
star