Search code examples
ui-automationgitlab-cikatalon-studio

Katalon with GitLab CI, katalon is not recognized as an internal or external command


I am trying to setup a simple TESTSUITE with katalon to run automatically on Gitlab but I keep hitting this error :

katalon is not recognized as an internal or external command when i run this script:

I have followed this tutorial. And tried using katalon-execute.sh instead of katalon but no changes

https://docs.katalon.com/katalon-studio/tutorials/continuous_integration_gitlab.html#add-katalon-path-to-environment-variables

Some help would be really appreciated.

run_katalon_test_suite: tags: - shell script:

        katalon -noSplash  -runMode=console -consoleLog -projectPath=
      "My project path>" -retry=0
      -testSuitePath="Test Suites/FirstTestSuite>" -executionProfile=
      "default" -browserType="Chrome (headless)"

Solution

  • You need to navigate to the folder where Katalon is installed and then run the console command from that folder.