This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/basic-report.html
This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/basic-report.html
Hi there,
I am currently facing following issue by generating PDF Report using the newest Version of Katalon Studion 6.1.5
I also have installed the Basic Report Plugin, and I ran a test suite. Attached is the error showing up whenever I try to generate a pdf report.
Can you please support me?
BR,
Mariam
Hi!
I am running Katalon studio 6.1.5 on jenkins slave node (Centos 7) and I have issue with Basic Report.
It tries to reload plugins and ends up with following:
using
Start reloading plugins...
Sat May 18 09:04:39 CEST 2019
Failed to reload plugins.
com.kms.katalon.plugin.models.ReloadPluginsException: Unexpected error occurs during executing reload plugins
at com.kms.katalon.plugin.service.PluginService.reloadPlugins(PluginService.java:210)
at com.kms.katalon.composer.handlers.ConsoleModeReloadPluginsHandler.reload(ConsoleModeReloadPluginsHandler.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.kms.katalon.execution.console.ConsoleMain.reloadPlugins(ConsoleMain.java:168)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:100)
at com.kms.katalon.console.application.Application.runConsole(Application.java:76)
at com.kms.katalon.core.application.Application.runConsole(Application.java:84)
at com.kms.katalon.core.application.Application.start(Application.java:67)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
Caused by: com.kms.katalon.plugin.models.KStoreClientException: Unexpected error occurs during executing get latest plugins
at com.kms.katalon.plugin.service.KStoreRestClient.getLatestPlugins(KStoreRestClient.java:78)
at com.kms.katalon.plugin.service.PluginService.fetchLatestPlugins(PluginService.java:223)
at com.kms.katalon.plugin.service.PluginService.reloadPlugins(PluginService.java:87)
... 23 more
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: access_denied
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2033)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1135)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
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)
... 25 more
using my credentials -email="" -password="" in cmd line to authentificate into plugin store, but access denied
proxy defined as HTTP or HTTPS
Hi all, has anyone faced an issue with Katalon being unresponsive at the end of a test execution, it seems to get stuck on the “Generating PDF report…” part after execution has finished?
Please try using -apiKey.
https://docs.katalon.com/katalon-store/docs/user/plugin-console-installation.html
Of course I am using -apiKey=[3adf86ab-xxxx-yyyy-ba2b-5e3a3bab2662]. I believe it will not call reload plugins in other case.
Could you please verify the command on your PC?
xvfb-run -s "-screen 0 1920x1200x24" /opt/Katalon_Studio_Linux_64-6.1.5/katalon -noSplash -runMode=console -projectPath="${WORKSPACE}/katalon/test.prj" -browserType="Firefox" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/Platform install part1" -executionProfile=default -g_corename="corename" -g_nfsRoot="nfsRoot" -g_baseUrl="baseUrl" -apiKey=[3adf86ab-1573-4788-ba2b-5e3a3bab2662] --config -proxy.option=MANUAL_CONFIG -proxy.server.type=HTTPS -proxy.server.address="web-proxy.net" -proxy.server.port=8080
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
169 2.4.7.xx-201611170128-e46 = ACTIVE
INFO: Katalon Version: 6.1.5
INFO: Command-line arguments: -runMode=console -projectPath=/katalon/test.prj -browserType=Firefox -retry=0 -statusDelay=15 -testSuitePath=Test Suites/Platform install part1 -executionProfile=default -g_corename=corename -g_nfsRoot=nfsRoot -g_baseUrl=baseUrl -apiKey=****** --config -proxy.option=MANUAL_CONFIG -proxy.server.type=HTTPS -proxy.server.address=web-proxy.net -proxy.server.port=8080
INFO: User working dir: /root
INFO: User home: /root
INFO: Java vendor: Oracle Corporation
INFO: Java version: 1.8.0_131
INFO: Local OS: Linux 64bit
INFO: CPU load: 16%
INFO: Total memory: 15884 MB
INFO: Free memory: 7976 MB
Start reloading plugins…
Wed May 22 13:36:10 CEST 2019
Failed to reload plugins.
com.kms.katalon.plugin.models.ReloadPluginsException: Unexpected error occurs during executing reload plugins
at com.kms.katalon.plugin.service.PluginService.reloadPlugins(PluginService.java:210)
https://docs.katalon.com/katalon-studio/docs/console-mode-execution.html sais that you are requested to
Open the command prompt and navigate to the folder of your Katalon Studio build, which contains katalon.exe (Windows) or Applications folder (Mac OS) or katalon (Linux) file.
But your command contains a string
/opt/Katalon_Studio_Linux_64-6.1.5/katalon -noSplash ...
.
This implies that you DID NOT navigate to the folder where you find the katalon binary. If you do not change the current directory properly, Katalon Studio would never work. Unpredictable oddities may occur.
made cd … and ran the cmd ( you see there is a folder name before #)
Katalon_Studio_Linux_64-6.1.5]# xvfb-run -s “-screen 0 1920x1200x24” katalon -noSplash -runMode=console -projectPath="${WORKSPACE}/katalon/test.prj" -browserType=“Firefox” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/Platform install part1” -executionProfile=default
result is the same, did not help
You are not specifying -apiKey=[apiKey here]
which is required as of v6.1.5.
See Getting reports from test suite with Katalon 6.1.5
Now, to get the new version with the plugins to work, you need to go create and use an API key from the Katalon store. Generate a new API key by going to Security tab in My Account menu in Katalon Store. You can use the existing key if you already had one. (https://docs.katalon.com/katalon-store/docs/user/plugin-console-installation.html ) you will add that into your CLI (above) as
-apiKey=[apiKey here]
Hi Kazu, I just copied part of log in previous post to show it was running from directory -apiKey is specified for sure, if you not specify -apiKey execution wil not call plugin reload
Katalon_Studio_Linux_64-6.1.5]# xvfb-run -s "-screen 0 1920x1200x24" katalon -noSplash -runMode=console -projectPath="${WORKSPACE}/katalon/test.prj" -browserType="Firefox" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/Platform install part1" -executionProfile=default -g_corename="corename" -g_nfsRoot="nfsRoot" -g_baseUrl="baseUrl" -apiKey=[3adf86ab-1573-4788-ba2b-5e3a3bab2662] --config -proxy.option=MANUAL_CONFIG -proxy.server.type=HTTPS -proxy.server.address="web-proxy.net" -proxy.server.port=8080
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
169 2.4.7.xx-201611170128-e46 = ACTIVE
There is no info about plugin in execution log if you mean Katalon or point me where to find the log you are talking about.
That one I have attached is from jenkins node.
Please try removing the square brackets [] around the API key.
I removed [ ], used also ’ ’ or just a key, still the same.
edited :
OK resolved issue, Proxy was not set in UI.
command line did not accepted proxy parameters passed in section:
–config -proxy.option=MANUAL_CONFIG -proxy.server.type=HTTP -proxy.server.address=“set proxy” -proxy.server.port=8080
I had to start UI run the katalon and put the proxy in via Shift+Ctrl+P proxy.
I there any way to get more detailed logs? like --debug
I wrote above I was able to run it, but when I call it from jenkins error is here again
Please add “-consoleLog” in your arguments.
Thanks
I can not it is not supported on linux as written in docs, but I will try.
it is not supported …
!MESSAGE Exception while dispatching event org.osgi.service.event.Event [topic=PROJECT/OPENED] {} to handler org.eclipse.e4.ui.services.internal.events.UIEventHandler@77edd05d
!STACK 0
java.lang.NullPointerException
still no progress