Katalonc is not recognized as an internal or external command operable program or batch file

Katalonc is not recognized as an internal or external command operable program or batch file

  • Remove From My Forums

  • Question

  • I tried to run katalon using VSTS command line mode.

    I am always getting this error

    katalon' is not recognized as an internal or external command

    Can anyone knows why this error is occurring?


    • Edited by Nthu Thursday, September 27, 2018 12:24 PM
    • Moved by James Lee - MSFT Friday, September 28, 2018 5:21 PM Moving to correct forum

All replies

  • What is "katalon"? This one? Install it, then you can run it.

    -- pa

  • I have installed "katalon" in my machine but still getting the same issue.

  • Hi,

    Below is the reason for my error,

    I am trying to run katalon script using VSTS command line agent. But the issue is, command line(in VSTS) is not  taking my test server directory.

    How to fetch my test server directory in VSTS command line?

  • https://social.msdn.microsoft.com/Forums/vstudio/en-US/bfe452da-0b21-444d-9da8-c257eaa46908/the-discussion-for-vsts-has-moved

One of the advantages of Katalon Studio is that you can execute automation test without launching Katalon Studio IDE by using command line mode execution. Users use this function to run execution batch files or planning jobs in CI Tools. This easy-to-follow guide will walk you through steps on how to execute test cases using the command prompt.

Read more helpful tutorials about Katalon Studio Test Execution

Execute Katalon in CMD

1. Open the command prompt and navigate to the Katalon Studio folder that contains katalon.exe file. For example:

Katalonc is not recognized as an internal or external command operable program or batch file

2. Enter the following syntax to execute automation test:

katalon {option1} {option2} ... {optionN}

This command includes:

Katalonc is not recognized as an internal or external command operable program or batch file

For example:

C:

cd C:\Katalon\4.7

katalon -runMode=console -projectPath="C:\Project\Sample Project.prj" -reportFolder="Reports" -reportFileName="report" -retry=0 -testSuitePath="Test Suites/TS_RegressionTest" -browserType="Chrome"

3. Press Enter to start execution.

Katalon Command Line options

Here’s the list of options supported in the “katalon” command:

Katalonc is not recognized as an internal or external command operable program or batch file

Command Builder

Instead of typing directly in the command prompt, you can quickly generate commands to execute test suites by following the steps below:
1. Click on Build CMD from the main toolbar.

Katalonc is not recognized as an internal or external command operable program or batch file

2. The Generate Command for Console Mode dialog is displayed as below. Configure your options as needed.

Katalonc is not recognized as an internal or external command operable program or batch file

This dialog has the following options:

Katalonc is not recognized as an internal or external command operable program or batch file

3. Click on Generate Command after you complete the configuration. The command is generated and shown in a dialog as below

Katalonc is not recognized as an internal or external command operable program or batch file

4. You can Copy to Clipboard and paste it into the command prompt for execution.

Use console.properties file

Instead of specifying command settings for each execution, you can place all settings in the console.properties and use this file in the command prompt. This file can be generated using the same Command Builder as above.
1. Generate console.properties file using Command Builder

Katalonc is not recognized as an internal or external command operable program or batch file

2. The console.properties file will be generated to your preferred location. You can open and update the parameters manually as needed. For example:

Katalonc is not recognized as an internal or external command operable program or batch file

3. Run the console.properties file in the console mode using the following syntax:
katalon -propertiesFile="<absolute path to console.properties file>" -runMode=console

For example:

katalon -propertiesFile="D:\Katalon\Demo_Project\console.properties" -runMode=console

4. You can add extra Katalon command options to this command. Any option already defined in the console.properties file will be overwritten by the one declared on the command line.katalon -propertiesFile="<absolute path to console.properties file" -runMode=console -browserType=IE
This command runs the test on IE instead of Chrome as browserType is set to IE.

Read more helpful tutorials about Katalon Studio Test Execution

For further reference, visit Top 10 Automation Testing Tools Review.

Source: Executing in console mode

How do you fix is not recognized as an internal or external command operable program or batch file?

You can resolve this issue in three ways:.
First, use the full path of the executable file to launch the program..
Second, add the program path to Windows environment variables..
Finally, move the files to the System32 folder..

Is not recognized as an internal or external command operable program of batch file?

The “is not recognized as an internal command” error usually occurs because the computer can't find the executable that you're asking it to launch. However, you can provide it with the full path to your executable file and it should then be able to run it without any issues. Launch a Command Prompt window on your PC.

What is not recognized as an internal command in Windows?

The “not recognized as internal command” error usually occurs because the computer cannot find the executable file it is trying to start. However, you can provide the full path to your executable and then it should run without any problem. Launch a Command Prompt window on your PC.

How do I run Katalon scripts?

Execute Katalon Studio in console mode​ Open the command prompt and navigate to the folder of your Katalon Studio build: katalonc.exe (Windows), Applications folder (Mac OS), or katalonc (Linux) file. Press Enter to start execution.