Katalon icw CICD

Katalon Studio Integration with GitLab CI/CD

For CICD purposues usually a docker image of Katalon is needed which then can be integrated with Katalon Studio.Use the official Katalon Docker image to run your tests in GitLab CI/CD. This image is pre-configured with all necessary dependencies for running Katalon Studio.

The reference of the docker images can be implemented in various cicd products. we will sum them up


katalon-test:
 image: katalonstudio/katalon
 script:
 - katalonc -noSplash -runMode=console -projectPath="path/to/your/project" -retry=0 -testSuitePath="Test Suites/YourTestSuite" -executionProfile="default" -browserType="Chrome (headless)"

Katalon Studio Integration with GitHub Actions

name: Katalon Studio Test Execution
on: [push]
jobs:
 build:
 runs-on: ubuntu-latest
 container: katalonstudio/katalon
 steps:
 - uses: actions/checkout@v2
 - name: Run Katalon Studio Tests
 run: katalonc -noSplash -runMode=console -projectPath="$GITHUB_WORKSPACE" -retry=0 -testSuitePath="Test Suites/YourTestSuite" -executionProfile="default" -browserType="Chrome (headless)"

– Execution: Whenever you push changes to your repository, GitHub Actions will automatically execute the workflow, running your Katalon tests in the process.

Katalon Studio Integration with Jenkins


pipeline {
 agent {
 docker { image 'katalonstudio/katalon' }
 }
 stages {
 stage('Test') {
 steps {
 sh 'katalonc -noSplash -runMode=console -projectPath="/path/to/your/project" -retry=0 -testSuitePath="Test Suites/YourTestSuite" -executionProfile="default" -browserType="Chrome (headless)"'

Katalon Studio Integration with Azure

Prerequisites

Steps to Integrate Katalon Studio with Azure DevOps

-. Prepare Your Katalon Studio Project

  1. Create a New Pipeline
  1. Configure Your Pipeline

You have the option to use the classic editor or YAML to define your pipeline. Here, we’ll focus on the YAML configuration for using Docker.


trigger:
- main

pool:
 vmImage: 'ubuntu-latest'

container:
 image: katalonstudio/katalon

steps:
- script: |
 katalonc -noSplash -runMode=console -projectPath="$(System.DefaultWorkingDirectory)/your-katalon-project-folder" -retry=0 -testSuitePath="Test Suites/YourTestSuite" -executionProfile="default" -browserType="Chrome (headless)" -apiKey="<Your_Katalon_API_Key>"
 displayName: 'Execute Katalon Studio Tests'

For all Replace your-katalon-project-folder with the path to your project within the repository, YourTestSuite with the name of your test suite, and <Your_Katalon_licence/api_Key>

Best Practices