Run KRE via katalonc.exe in Octopus

Our org uses Octopus for a our deployments. I haven’t been able to find much online that talks about integrating Katalon execution with Octopus. Ultimately, we’d like to be able to get a response back from Katalon which we can use to decide whether the build stays or gets rolled back. I have this much figured out so far.

  1. Create a step template in Octopus.
  2. Create the parameters I want to pass into the command line.
  3. Create a powershell script that executes the katalonc.exe command line and passes in the parameters.

Where I’m running into a problem, is that I need to be able to call an instance of KRE that resides on a remote server (cannot run it on the deployment server). How exactly do I do that? I also think I saw somewhere that Katalon can return an exit code? Essentially, we’d like to be able to say if 95% or more of tests passed, then complete the build. Otherwise, roll it back. Any help is greatly appreciated!

1 Like

Hey Eric,
just wondering is there any updates here?

Everything needed is documented, including exit codes.
For the rest, it is only a matter of how to execute shell scripts in Octopus on a certain remote node / server.
You, as the user of it, should be more familiar with such.
see: Command Syntax (Command-line/Console Mode Execution) | Katalon Docs

  1. Exit CodeBelow is the list of exit codes after console mode execution:
  • 0: the execution passed with no failed or error test case.
  • 1: the execution has failed test cases.
  • 2: the execution has error test cases.
  • 3: the execution has failed test cases and error test cases.
  • 4: the execution cannot start because of invalid arguments.