Running Katalon using Windows cmd

I am attempting to run Katalon using the command line prompt generated by the Builder within Katalon Studio. I get this script: katalon -noSplash -runMode=console -consoleLog -projectPath=“C:\Users\gd0239\Katalon Studio\Production Test\Production Test.prj” -retry=0 -testSuitePath=“Test Suites/CAADS UI Testing” -executionProfile=“default” -browserType=“Chrome”

Copying it into the cmd prompt gives me the error: “katalon is not recognized as an internal or external command, operable program, or batch file”

Am I overlooking something basic? The syntax matches the format I found in the documentation example.

Just CD into the Katalon folder (for me, that’s C:\KatalonStudio). If you add the command to a shell script (batch file) just place the path before the call to katalon:

C:\KatalonStudio\katalon -noSplash ...

So, if I’m understanding right what you’re saying, if I were to put the command into a shell script, I would have to store it in the Katalon folder, and then put the folder path before the script?

No, that’s precisely why you put it in the script – if you don’t then you’ll need to store the script in the Katalon install folder. The point is to build the command with ALL the info it needs: the path to Katalon and the execution command switches (-noSpalsh etc).

You could add the katalon install folder to your environment PATH variable (but that’s unnecessary if you do what I said).

Ah, thanks, I was able to run the script!

Now I’m just not sure how to interpret the results:

Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecifie


133 2.4.7.xx-201611170128-e46 = ACTIVE

!SESSION 2018-07-02 10:20:45.185 -----------------------------------------------



java.vendor=Oracle Corporation

BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US

Framework arguments: -runMode=console -projectPath=C:\Users\gd0239\KatalonStudi

o\Production Test\Production Test.prj -retry=0 -testSuitePath=Test Suites/CAADS

UI Testing -executionProfile=default -browserType=Chrome

Command-line arguments: -os win32 -ws win32 -arch x86_64 -data config -runMode=

console -consoleLog -projectPath=C:\Users\gd0239\KatalonStudio\Production Test\P

roduction Test.prj -retry=0 -testSuitePath=Test Suites/CAADS UI Testing -executi

onProfile=default -browserType=Chrome

!ENTRY org.eclipse.jdt.core 4 0 2018-07-02 10:20:55.335

!MESSAGE Invalid ZIP archive: C:\Users\gd0239\KatalonStudio\jre\lib\jfr.jar

com.kms.katalon.execution.exception.ExecutionException: java.lang.NullPointerExc


    at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParse


    at com.kms.katalon.execution.console.ConsoleExecutor.execute(ConsoleExec

    at com.kms.katalon.execution.console.ConsoleMain.launch(


    at com.kms.katalon.console.application.Application.runConsole(Applicatio

    at com.kms.katalon.core.application.Application.runConsole(Application.j


    at com.kms.katalon.core.application.Application.start(

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli


    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec





    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.


    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

    at java.lang.reflect.Method.invoke(

    at org.eclipse.equinox.launcher.Main.invokeFramework(

    at org.eclipse.equinox.launcher.Main.basicRun(


Caused by: java.lang.NullPointerException

    at com.kms.katalon.execution.entity.TestSuiteExecutedEntity.setTestSuite


    at com.kms.katalon.execution.entity.TestSuiteExecutedEntity.<init>(TestS

    at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParse


    ... 17 more

That’s not a failure I know about. Post a separate question.

Alright, I went ahead and did that. Thanks for your help.

You’re welcome. And thanks for the BA.

Russ Thomas said:

You’re welcome. And thanks for the BA.

Russ Thomas said:

You’re welcome. And thanks for the BA.

Could you please let me know is this above issue is fixed

katalonc -noSplash -runMode=console -projectPath=“C:\Users\shilpi\git\functional-tests\BannerFunctionalTestCases.prj” -retry=0 -testSuitePath=“Test Suites/SanityCheck” -executionProfile=“default” -browserType=“Chrome” -apiKey=“9578f6f0-b77e-4e6b-b79a-ad0dccfb13e8”

the mentioned syntax is generated CMD from katalon studio 7.08, if i run aboove mentioned command in cmd mode error I am getting-

  1. ‘katalonc’ is not recognized as an internal or external command,
    operable program or batch file.
  2. if I replace katalonc to katalon neither getting any error not any out put.

please suggest

1 Like

I am experiencing the same - No error, and no output.

What is printed to the log file?

There was nothing previously being printed to the log file for this issue – In my case it was being blocked by something locally / a problem with my setup – I am good now thank you for the super quick response!

Same issue, there is no error and no output after run from cmd

Can someone explain how to solve this please?