GitHub action job failed with testCloud

Dear all,

I have a collection that I run using GithibAction with Test cloud.
I run 5 jobs with different combination of OS/Browser that I configured with the testcloudEnvironmentId parameter.

Here my the github action .yml file:

name: Katalon Test Suite Collection (testcloud)
on:
  workflow_dispatch:
  schedule:
    - cron: '0 3 * * *'

jobs:
  build:
    strategy:
      fail-fast: false
      max-parallel: 1
      matrix:
        OsBrowser: [377,372,373,339,107]
        include:
          - os: macos-latest
            OsBrowser: 377
          - os: macos-latest
            OsBrowser: 339
          - os: macos-latest
            OsBrowser: 107
          - os:  windows-latest
            OsBrowser: 372
          - os:  windows-latest
            OsBrowser: 373
          
    runs-on: ${{ matrix.os }}
    continue-on-error: true
    steps:
    - name: Get Info 
      run: echo "${{ matrix.os }}- ${{ matrix.OsBrowser }}"
    - name: Checkout
      uses: actions/checkout@v4
    - name: Katalon Studio Github Action
      uses: katalon-studio/katalon-studio-github-action@v3.0
      with:
          version: '9.5.0'
          projectPath: '${{ github.workspace }}'
          args: '-noSplash -retry=0 -browserType="TestCloud" -testcloudEnvironmentId="${{matrix.OsBrowser}}" -testcloudTunnel="false" -statusDelay=15 -executionProfile="X" -testSuiteCollectionPath="Test Suites/Test collection" -orgID=xxx -apiKey=${{ApiKey}} -testOpsReleaseId=xxx -testOpsProjectId=xxx --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -webui.autoUpdateDrivers=true'

When the job failed I only have this info:

Start checking license task


com.kms.katalon.execution.core.exceptions.ExecutionException: Unable to execute test suite 'Test Suites/HP Test Suite'
	at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.buildLauncher(TestSuiteCollectionConsoleLauncher.java:353)
	at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.buildSubLaunchers(TestSuiteCollectionConsoleLauncher.java:209)
	at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.newInstance(TestSuiteCollectionConsoleLauncher.java:108)
	at com.kms.katalon.execution.console.entity.TestSuiteCollectionLauncherOptionParser.getConsoleLauncher(TestSuiteCollectionLauncherOptionParser.java:139)
	at com.kms.katalon.execution.console.ConsoleExecutor.execute(ConsoleExecutor.java:74)
	at com.kms.katalon.console.application.ConsoleMain.launch(ConsoleMain.java:158)
	at com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:34)
	at com.kms.katalon.application.Application.runConsole(Application.java:140)
	at com.kms.katalon.application.Application.start(Application.java:100)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)



Start clean up session

End check license task

End clean up session

Start release license task

License released

End release license task


All launchers terminated

Exit code: 2.
Error: Exit code 2.

If I remove the include parameter in my .yml file i don’t have this error but It means I can’t control the run-on parameter.
Any help on that ?

many thanks,

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

I change my yml script to have a correct run-on and now I have KRE licence error while before it was not running on KRE because I don’t have the KRE licence.

Here is the new script:

name: Katalon Test Suite Collection (testcloud)
on:
  workflow_dispatch:
  schedule:
    - cron: '0 3 * * *'

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      max-parallel: 1
      matrix:
        include:
          - os: macos-latest
            OsBrowser: 377
          - os: macos-latest
            OsBrowser: 339
          - os: macos-latest
            OsBrowser: 107
          - os:  windows-latest
            OsBrowser: 372
          - os:  windows-latest
            OsBrowser: 373
          
    continue-on-error: true
    steps:
    - name: Get Info 
      run: echo "${{ matrix.os }} - ${{ matrix.OsBrowser }}"
    - name: Checkout
      uses: actions/checkout@v4
    - name: Katalon Studio Github Action
      uses: katalon-studio/katalon-studio-github-action@v3.0
      with:
          version: '9.5.0'
          projectPath: '${{ github.workspace }}'
          args: '-noSplash -retry=0 -browserType="TestCloud" -testcloudEnvironmentId="${{matrix.OsBrowser}}" -testcloudTunnel="false" -statusDelay=15 -executionProfile="integ" -testSuiteCollectionPath="Test Suites/Test collection Console R5" -orgID=xxx -apiKey=${{API_KEY}} -testOpsReleaseId=xxx -testOpsProjectId=xxx --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -webui.autoUpdateDrivers=true'

Any ideas?

Many thanks

1 Like

Hi,

Looking forward to hearing from other experts. Can anyone please help?