Question about Licenses Required (Testcloud or KRE or both?)

Sure,

I started out with using the Github Action’s example using the GIthub Action made by Katalon. But i couldn’t get that to work so i used the docker image instead:

name: CI Engine
on:
  workflow_call:
    inputs:
      config-path:
        required: true
        type: string
    secrets:
      KATALON_PERSONAL_ACCESS_TOKEN:
        required: true
      KATALON_API_KEY:
        required: true
jobs:
  run-test-collections:
    runs-on: ubuntu-latest
    env:
        RUN_PATH: "Test Suites/Initial Setup"
    steps:

      - name: Checkout Repository
        uses: actions/checkout@v4
        with:
          repository: <repo>/katalon
          token: ${{ secrets.KATALON_PERSONAL_ACCESS_TOKEN }}
        
      - uses: actions/labeler@v4
        with:
          repo-token: ${{ secrets.KATALON_PERSONAL_ACCESS_TOKEN }}
          configuration-path: ${{ inputs.config-path }}

      - name: Docker Pull Katalon
        run: docker pull katalonstudio/katalon:latest

      - name: Run Docker
        run: |
            docker run -t --rm -v "$(pwd):/katalon/katalon/source" katalonstudio/katalon katalonc.sh -noSplash -runMode=console -projectPath="/katalon/katalon/source/katalon-project.prj" -retry=1 -retryStrategy=allExecutions -testSuiteCollectionPath="${{ env.RUN_PATH }}" -browserType="TestCloud" -testcloudEnvironmentId="${redacted}" -testcloudTunnel="false" -executionProfile="default" -apiKey="${{ secrets.KATALON_API_KEY }}" -orgID=${redacted} -testOpsProjectId=${redacted} --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true -webui.autoUpdateDrivers=true

I have removed some personal information redacted

The github action as shown in the documentation, gives the same error with Testcloud license missing, and if a Testcloud is needed then that makes sense, since i don’t have one.

@anton3 above parameter indicate that you will use TestCloud for your test execution, which requires a TestCloud License.

If you only have a KRE License, you can execute your tests using a dedicated browser (e.g., Google Chrome) on KRE, so you don’t need a TestCloud License.

Your GitHub Actions YAML configuration will look like this:

docker run -t --rm -v "$(pwd):/katalon/katalon/source" katalonstudio/katalon katalonc.sh \
  -noSplash \
  -runMode=console \
  -projectPath="/katalon/katalon/source/katalon-project.prj" \
  -retry=1 \
  -retryStrategy=allExecutions \
  -testSuiteCollectionPath="${{ env.RUN_PATH }}" \
  -browserType="Chrome" \
  -executionProfile="default" \
  -apiKey="${{ secrets.KATALON_API_KEY }}" \
  --config \
  -proxy.auth.option=NO_PROXY \
  -proxy.system.option=NO_PROXY \
  -proxy.system.applyToDesiredCapabilities=true \
  -webui.autoUpdateDrivers=true

5 Likes

Is this possible in a Github Runner?

Thank you it works now :slight_smile:

1 Like

I haven’t tried it before @anton3

1 Like

that’s great! :beers:

2 Likes