This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/console-mode-execution.html
This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/console-mode-execution.html
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.
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
Hi, Alex. I have all needed escapes in my file. WEB clear escapes after I copy-past the content on it. Regards, Alex
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' urlbaseand 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
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
Try configuring email , in project settings instead of using it command itself.
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"
"
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.?
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: 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
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.
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
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?
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
Even for me i see this observation.
-
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.
-
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.
@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
@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.
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
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
@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.