- 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?
//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:
2. Enter the following syntax to execute automation test:
katalon {option1} {option2} ... {optionN}
This command includes:
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:
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.
2. The Generate Command for Console Mode dialog is displayed as below. Configure your options as needed.
This dialog has the following options:
3. Click on Generate Command after you complete the configuration. The command is generated and shown in a dialog as below
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
2. The console.properties file will be generated to your preferred location. You can open and update the parameters manually as needed. For example:
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