Katalon with Github Actions integration

Our KRE trial can work with CI/CD tools, in this case GitHub Actions should work. However, can you check again your trial license, it might be expired which resulted in your problem.

Additionally, you can try with this sample

Hope this helps.

How one can find if his 1-month trial license of KRE has already-expired or not?

2 Likes

@vu.tran can you share the steps to check trial licence expiry for @depapp ?

could you please help @vu.tran :bowing_man:
thanks in advance

2 Likes

yes, please @vu.tran
thanks

2 Likes

Hi @depapp,

You can check here at the start page when you log in KS

or the information can be accessed via this option


Hope this helps!

1 Like

Does the 1-month license for KRE last for the same period as the 1-month license for KS?

it does! Trial duration applies the same for KSE and KRE.

1 Like

are you by any chance using the same machine with a different user id (resetting to get 1 month free KRE ) but have used a previous id on the same machine that is expired now? @depapp

The following post described how to use Chrome for Testing of a specific version (e.g, v116)

http://forum.katalon.com/t/support-for-chrome-for-testing-in-katalon-studio/120427

noted with thanks @vu.tran

2 Likes

After checking the account I was using, it turns out that the free trial period for that account has expired.
When I switched to an account that still has an active free trial, the logs showing ā€œno license availableā€ no longer appeared :white_check_mark:

However, a new issue has arisen: the execution on GitHub Actions doesn’t stop and keeps running for up to 30 minutes. So I have to cancel it manually

You can check the full logs here: use mac instead of windows Ā· depapp/sample-bdd-project-in-katalon-latest-version@44e9ed9 Ā· GitHub

The yaml config for the github action:

name: Katalon Test
on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    runs-on: macos-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v4
    - name: Katalon Studio Github Action
      uses: katalon-studio/katalon-studio-github-action@v4.0
      with:
          version: '9.7.3'
          projectPath: '${{ github.workspace }}'
          args: '-noSplash -runMode=console -retry=0 -testSuitePath="Test Suites/Test Suite - Login" -browserType="Chrome" -executionProfile="default" -apiKey= ${{ secrets.KATALON_API_KEY }} --config -webui.autoUpdateDrivers=true'

please help @vu.tran @kazurayam @Shin @Monty_Bagati @dineshh

3 Likes

The log taken by GitHub Action does not contain useful information to diagnoze how Katalon worked. All it says is ā€œyour action failedā€ and no more. You should look at the logs emitted by the katalonc

Then how can we read the reports emitted by katalonc in GitHub Action?

You need to change your YAML config to post the report files out of the server to make the files readable for us. See the following post

change the JDK version to 17 @depapp

noted with thanks @kazurayam

2 Likes

can you give me an example @Monty_Bagati ?
I don’t get it, since there’s no JDK setup on the config yaml

2 Likes

you need to read this post first

=========================

the issue is on the -runMode=console args, the execution on github actions will stuck when it’s enabled.

and also you need to use katalon with v9.6.0 on the github actions,
it will failed if you are using v9.7.3 or v10.0.0

if you need an example for the Github Actions and CircleCI integration, you can check my project here:

Github Actions yaml config: sample-bdd-project-in-katalon-latest-version/.github/workflows/main.yml at main Ā· depapp/sample-bdd-project-in-katalon-latest-version Ā· GitHub

CircleCI yaml config: sample-bdd-project-in-katalon-latest-version/.circleci/config.yml at main Ā· depapp/sample-bdd-project-in-katalon-latest-version Ā· GitHub

:beers: :beers: :beers:

5 Likes

Thank you for sharing solution @depapp!!

1 Like

Anytime! Happy to share. :beers:

3 Likes

Hello Vu,

on My screen I see license validity until:
Information:
Your trial period for Katalon Studio Enterprise and Runtime Engine expires on April 1, 2025.
and:

But with My Github actions run I get error as below:

Start activating offline…

Search for valid offline licenses in folder: /home/runner/.katalon/license

The number of valid offline licenses: 0

Start activating online…

Activated successfully with Katalon Runtime Engine license.
Failed to activate with TestCloud license. java.lang.NullPointerException: Cannot invoke ā€œcom.kms.katalon.license.models.CombinedAuthenticationToken.getAdminToken()ā€ because ā€œcombinedTokenā€ is null

INFO: Katalon Version: 9.6.0

Can you please help what is missing here?
I am using official github action code from github marketplace
My katalon license is valid as shown above

Thanks,
Nilesh