# Console Mode Execution

**URL:** <https://forum.katalon.com/t/console-mode-execution/16623>\
**Category:** Miscellaneous\
**Tags:** new-doc-request\
**Created:** [January 4, 2019, 8:46am UTC](https://forum.katalon.com/t/console-mode-execution/16623 "2019-01-04T08:46:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [January 4, 2019, 8:46am UTC](https://forum.katalon.com/t/console-mode-execution/16623/1 "2019-01-04T08:46:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alexandr\_Hladki](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Alexandr\_Hladki](https://forum.katalon.com/u/Alexandr_Hladki)\
**Post date:** [January 4, 2019, 12:07pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/2 "2019-01-04T12:07:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [January 4, 2019, 3:34pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/3 "2019-01-04T15:34:52Z")

</div>

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

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

```

Edit:  
@michael.hollander has fired a bug report

> [@projectPath argument missing when running from a properties file](http://forum.katalon.com/t/projectpath-argument-missing-when-running-from-a-properties-file/17051):
>
> Hello, I am having some problems executing a test suite from the command line with a properties file. Katalon claims I am missing the projectPath argument in my console.properties file when it is in fact there: browserType=Chrome projectPath=C\:\\Users\\myuser\\Katalon Studio\\Demo\\MyProject.prj executionProfile=default retry=3 retryFailedTestCases=true testSuitePath=Test Suites/Demo Test Suite reportFolder=C\:\\temp\\reports reportFileName=MyReport The command I am sending is: katalon -pro…

---

<div class="post-metadata">

**Author:** ![Alexandr\_Hladki](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Alexandr\_Hladki](https://forum.katalon.com/u/Alexandr_Hladki)\
**Post date:** [January 11, 2019, 1:02pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/5 "2019-01-11T13:02:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![melena.ramirez](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@melena.ramirez](https://forum.katalon.com/u/melena.ramirez)\
**Post date:** [January 16, 2019, 10:56am UTC](https://forum.katalon.com/t/console-mode-execution/16623/6 "2019-01-16T10:56:19Z")

</div>

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/](http://tomcatdes.dap.es:8180/prl/)’

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

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

Thaks

---

<div class="post-metadata">

**Author:** ![er.namitgupta](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@er.namitgupta](https://forum.katalon.com/u/er.namitgupta)\
**Post date:** [March 11, 2019, 1:25am UTC](https://forum.katalon.com/t/console-mode-execution/16623/7 "2019-03-11T01:25:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ahamedsm](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@ahamedsm](https://forum.katalon.com/u/ahamedsm)\
**Post date:** [April 10, 2019, 11:40am UTC](https://forum.katalon.com/t/console-mode-execution/16623/8 "2019-04-10T11:40:27Z")

</div>

Try configuring email , in project settings instead of using it command itself.

---

<div class="post-metadata">

**Author:** ![cuihang](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@cuihang](https://forum.katalon.com/u/cuihang)\
**Post date:** [April 28, 2019, 2:03am UTC](https://forum.katalon.com/t/console-mode-execution/16623/9 "2019-04-28T02:03:48Z")

</div>

hi,I’m running the script on the command line,But the message cannot be sent successfully.The script is as follows:  
“./Katalon\ Studio.app/Contents/MacOS/katalon --args -noSplash -runMode=console -consoleLog -projectPath=”/Users/xxxxxx/workspace/xxxxxx/wg.prj" -retry=0 -testSuitePath=“Test Suites/Login/Login” -executionProfile=“stg(private)” -browserType=“Chrome (headless)” [-sendMail="xxxx@xxxxxxx.com](mailto:-sendMail=%22xxxx@xxxxxxx.com)"  
"

---

<div class="post-metadata">

**Author:** ![Dinesh\_Srinivasan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dinesh_srinivasan/32/7194_2.png) [@Dinesh\_Srinivasan](https://forum.katalon.com/u/Dinesh_Srinivasan)\
**Post date:** [May 9, 2019, 11:02pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/10 "2019-05-09T23:02:48Z")

</div>

It would have been nice, if we could set the mail server settings via console. Also why not make the subject line dynamic - It should show the whether it failed and passed in the subject line.?

---

<div class="post-metadata">

**Author:** ![georg.koch](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@georg.koch](https://forum.katalon.com/u/georg.koch)\
**Post date:** [May 15, 2019, 11:55am UTC](https://forum.katalon.com/t/console-mode-execution/16623/11 "2019-05-15T11:55:17Z")

</div>

Hello together,

I’m trying to execute katalon-cli behind corporate proxy as following  
./katalon -noSplash -runMode=console -projectPath="/opt/katalon/katalon-tests.prj" -reportFolder="/opt/katalon/reports" -reportFileName=index -retry=0 -testSuitePath=“Test Suites/Test Suite” -executionProfile=“Default” -browserType=“Firefox” -apiKey="" --config -proxy.option=USE\_SYSTEM

I booked a plugin “Basic Report” in katalon.store and set environment variables:

- HTTP\_PROXY=corporate-proxy:3128
- HTTPS\_PROXY=corporate-proxy:3128

and got exception:  
Caused by: java.net.UnknownHostException: [store.katalon.com](http://store.katalon.com): Name or service not known  
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)  
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)  
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)  
at java.net.InetAddress.getAllByName0(InetAddress.java:1277)  
at java.net.InetAddress.getAllByName(InetAddress.java:1193)  
at java.net.InetAddress.getAllByName(InetAddress.java:1127)  
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)  
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:111)  
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)  
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)  
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)  
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)  
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)  
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)  
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)  
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)  
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)  
at com.kms.katalon.plugin.service.KStoreRestClient.executeGetRequest(KStoreRestClient.java:256)  
at com.kms.katalon.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:58)

Then I tried with MANUAL\_CONFIGURATION like:  
–config -proxy.option=MANUAL\_CONFIG -proxy.server.type=HTTP -proxy.server.address=“corporate-proxy” -proxy.server.port=“3128”

and got the same exception.

Do You have any best practises how to configure Katalon behind a proxy to download plugins from Katalon Store?

Thanks

---

<div class="post-metadata">

**Author:** ![tari.testing](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/tari.testing/32/3449_2.png) [@tari.testing](https://forum.katalon.com/u/tari.testing)\
**Post date:** [May 24, 2019, 1:01pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/13 "2019-05-24T13:01:47Z")

</div>

I was trying also this approach to call it from pipeline:

```
withEnv(['HTTP_PROXY=http://proxyAddress:port']) {
sh "npm run test"
}

```

Seems to be it is not able to get proxy settings, it works only if you set proxy in katalon UI, but this is not suitable for pipeline jenkins, cause it does not catch this settings. It works only if you are logged into terminal and run it.

---

<div class="post-metadata">

**Author:** ![Roman\_Pankov](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/roman_pankov/32/490_2.png) [@Roman\_Pankov](https://forum.katalon.com/u/Roman_Pankov)\
**Post date:** [May 27, 2019, 2:53pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/14 "2019-05-27T14:53:10Z")

</div>

I want to use Analytics, but it not send to it  
I see that it not enabled when start the program  
I start tests by Jenkins console command  
There I see rows about sending to analytics but when i go to it no luck  
And when i start programm on virtual machine i see that in project this option not enabled

---

<div class="post-metadata">

**Author:** ![kowsalrajk](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@kowsalrajk](https://forum.katalon.com/u/kowsalrajk)\
**Post date:** [May 29, 2019, 2:55pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/15 "2019-05-29T14:55:54Z")

</div>

Hi,

After generating the console properties and executing the below commands in the command prompt, it doesn’t run anything.

katalon -propertiesFile="\<C:\Users\kowsalra\Katalon Studio\Appa Thunai\console.properties\>" -runMode=console

katalon -propertiesFile="\<C:\Users\kowsalra\Katalon Studio\Project\console.properties\>" -runMode=console -browserType=Chrome

Can anyone help me to sort out this?

---

<div class="post-metadata">

**Author:** ![silee](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@silee](https://forum.katalon.com/u/silee)\
**Post date:** [May 31, 2019, 2:27am UTC](https://forum.katalon.com/t/console-mode-execution/16623/16 "2019-05-31T02:27:37Z")

</div>

hello team.  
i have question for cmd mode.  
when i use cmd mode, i cant save my report file as html…  
without cmd mode, it works very well. but when i use cmd mode,  
it cant be saved as html files  
plz reply asap^^  
thanks

---

<div class="post-metadata">

**Author:** ![raj20sdm](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@raj20sdm](https://forum.katalon.com/u/raj20sdm)\
**Post date:** [May 31, 2019, 1:22pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/17 "2019-05-31T13:22:24Z")

</div>

Even for me i see this observation.

1. With Katalon studio GUI tool, if i run tests it generated only execution\* files and not the html reports. Manually i need to run a free plugin to export in html format.

2. Most important, for me is running this in command line.  
Wheneven i run in command line more, i see same issue. Seeing only execution\* files and not html reports.

Please suggest a solution asap.

Thanks.

---

<div class="post-metadata">

**Author:** ![LudoNieuw](https://avatars.discourse-cdn.com/v4/letter/l/a88e57/32.png) [@LudoNieuw](https://forum.katalon.com/u/LudoNieuw)\
**Post date:** [May 31, 2019, 3:18pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/18 "2019-05-31T15:18:00Z")

</div>

@silee, @raj and all others,  
Same challenge for me, I would like to generate Junit or other format test results from cli commands. Going to the GUI is not an option for me, as my work is parts of a CI pipeline (Ubuntu agent) that doesn’t handle manual steps at all. Some ideas or trick would be very welcome.

for the ‘propertiesFile-glag-not-working’, I’ve written a bug report. Glad to provide more logs there, if needed.

Kind regards,

Ludo

---

<div class="post-metadata">

**Author:** ![erik.moderegger](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@erik.moderegger](https://forum.katalon.com/u/erik.moderegger)\
**Post date:** [June 3, 2019, 12:55pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/19 "2019-06-03T12:55:56Z")

</div>

@silee, @raj and @LudoNieuw  
You need to add your Api-Key (acc. to the docs).  
The problem for me is that it then starts “reloading plugins” but this takes forever.

---

<div class="post-metadata">

**Author:** ![LudoNieuw](https://avatars.discourse-cdn.com/v4/letter/l/a88e57/32.png) [@LudoNieuw](https://forum.katalon.com/u/LudoNieuw)\
**Post date:** [June 3, 2019, 3:06pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/20 "2019-06-03T15:06:25Z")

</div>

Great! I figured it out also this morning. I do not use a GUI version of Katalon, so this initially was lost to me, plugins were no use to me I thought. I ‘installed’ the Basic Report plugin and generated an API key from my account, which I added as flag -apiKey= to the command line command and that worked out of the box. I’m very happy with this functionality 😊

---

<div class="post-metadata">

**Author:** ![erik.moderegger](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@erik.moderegger](https://forum.katalon.com/u/erik.moderegger)\
**Post date:** [June 3, 2019, 6:24pm UTC](https://forum.katalon.com/t/console-mode-execution/16623/21 "2019-06-03T18:24:32Z")

</div>

Problem for me is that I don’t get to through the Proxy when trying to “reinstall” the PlugIn.

Is there any way to prevent that the CLI re-installs the Plugin

---

<div class="post-metadata">

**Author:** ![raj20sdm](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@raj20sdm](https://forum.katalon.com/u/raj20sdm)\
**Post date:** [June 4, 2019, 7:31am UTC](https://forum.katalon.com/t/console-mode-execution/16623/22 "2019-06-04T07:31:44Z")

</div>

@erik.moderegger, used the api key as below in command and ran the tests but am not seeing the html basic report generated as earlier. I see only execution\* log files.

docker run -t --rm -v “$(pwd)”:/katalon/katalon/source katalonstudio/katalon katalon-execute.sh -browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/ST1” -gURL=URL -apikey=XXXXX-XXXXX-XXXXX-XXXX-XXXX

Am running these tests on a katalon docker container.

[Next page](https://forum.katalon.com/t/console-mode-execution/16623.md?page=2)
