Console Mode Execution


#1

This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/console-mode-execution.html

#2

Dear colleagues!
I try to run katalon with next command:

c:\WEBAUT\Katalon_Studio_Windows_64-5.10.1>katalon -propertiesFile=“C:\WEBAUT\Development\FILENET\FILENET-20190102-03\console.properties” -runMode=console -noSplash -consoleLog -noExit

console.properties file content is (generated by Katalon):
#Fri Jan 04 12:48:50 CET 2019
browserType=Chrome
executionProfile=default
projectPath=C:\WEBAUT\Development\FILENET\FILENET-20190102-03\FILENET.prj
retry=0
testSuitePath=Test Suites/FILENET_Chrome

But nothing starts. Console log is:
[EL Warning]: 2019-01-04 13:06:20.823–Ignoring attribute [lastRun] on class [TestSuiteEntity] as no Property was generated for it.
Missing required argument(s): projectPath.

Fri Jan 04 13:06:50 CET 2019
Cannot send request, retry to send.

Proxy found for HTTP @ rdmproxy.rdm.cz:8080.
Request sent successfully.

Where is the problem?
Regards,
Alex.


#3

You need to escape : and \ in Java’s properties files.

projectPath=C\:\\WEBAUT\\Development\\FILENET\\FILENET-20190102-03\\FILENET.prj

Edit:
@michael.hollander has fired a bug report


#5

Hi, Alex. I have all needed escapes in my file. WEB clear escapes after I copy-past the content on it. Regards, Alex


#6

Hello everybody,
I waht to override Execution Profile variables but I don’t get it.

My default.glbl is

<?xml version="1.0" encoding="UTF-8"?> default true 'test' urlbase

and I execute

katalon -noSplash -runMode=console -consoleLog
-projectPath=$WORKSPACE’/PruebaPRL/PruebaPRL.prj’ -retry=0 -testSuitePath=‘Test Suites/LoginTestSuite’ -executionProfile=‘default’ -browserType=‘Chrome (headless)’ -g_urlbase=‘http://tomcatdes.dap.es:8180/prl/

but the urlbase that is aplied is ‘test’ instead of ‘http://tomcatdes.dap.es:8180/prl/

… what am i doing wrong? Why doesn’t urlbase override ?

Thaks


#7

Hi Team,

I am executing a Test suite in the command line mode. The Test suite is executing correctly through the command line mode. However, i am unable to send the email. The email works fine when the Test suite is executed from the Katalon IDE. Here is the command;

/Applications/Katalon\ Studio.app/Contents/MacOS/katalon --args -noSplash -runMode=console -consoleLog -noExit -projectPath="/Users/namigupt/Desktop/work/codebase/2019/Q1/unity/BDD/project-x/project-x.prj" -retry=0 -testSuitePath="Test Suites/X" -executionProfile="default" -browserType="Web Service" -sendEmail="XXXX@XXX.XXX"

Can you please help me in fixing this issue?

Regards,
Namit