Katalon with GitLab CI,katalon 不被识别为内部或外部命令

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

我正在尝试在 Gitlab 上自动设置一个带有 katalon 的简单 TESTSUITE 运行,但我一直遇到此错误:

当我 运行 这个脚本时,katalon 不被识别为内部或外部命令:

我已经学习了这个教程。并尝试使用 katalon-execute.sh 而不是 katalon 但没有变化

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

非常感谢您的帮助。

run_katalon_test_suite: 标签: - shell 脚本:

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

您需要导航到安装 Katalon 的文件夹,然后运行该文件夹中的控制台命令。

如果是 shell 脚本那么它应该以 ./ 开头 该解决方案需要更改 shell 脚本。

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

假设你的 katalon IDE 位于你的桌面

"C:/Users/xxx/Desktop/Katalon_windows/Katalon.exe" -noSplash  -runMode=console -consoleLog -projectPath="My project path>" -retry=0 -testSuitePath="Test Suites/FirstTestSuite>" -executionProfile= "default" -browserType="Chrome (headless)"