Not seeing Reports posted to TestOps via using the report uploader

I run this from the command line and I don’t see any reports posted to TestOps.in the project with the id used in the command.

java -jar “C:\Users<user name>\JavaProjects\newest jars\katalon-report-uploader-0.0.5.jar” --projectId=53928 --path=“C:\Users<user name>\git\mjp-regression\Reports\20200821_164234\TS8\20200821_164246” --email= --password="<corp account password" --type=katalon

What I see in the console is nearly 200 lines long which I have scrubbed and attached.
The end of the console log is:
2020-08-25 08:51:00.959 INFO 14312 — [ main] c.k.k.r.uploader.UploaderApplication : Started UploaderApplication in 20.352 seconds (JVM running for 21.346)
2020-08-25 08:51:00.960 INFO 14312 — [ Thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@4b9af9a9: startup date [Tue Aug 25 08:50:41 EDT 2020]; root of context hierarchy
2020-08-25 08:51:00.962 INFO 14312 — [ Thread-2] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown

Log from Katalon report uploader.txt (77.7 KB)

What am I doing incorrectly?

Hi @roadbike,

Is the project that you have accessed in Katalon TestOps to view reports the same as the one you use to upload using CLI?

Yes, there is only one project.

Hi @roadbike,

Let’s try removing \TS8\20200821_164246 from your command and check again.

It should be:
java -jar “C:\Users\JavaProjects\newest jars\katalon-report-uploader-0.0.5.jar” --projectId=53928 --path=“C:\Users\git\mjp-regression\Reports\20200821_164234” --email= --password="<corp account password" --type=katalon

I removed TS8\20200821_164246 from the command and checked it again.

I used the following but still don’t see a report in TestOps.
java -jar “C:\Users\JavaProjects\newest jars\katalon-report-uploader-0.0.5.jar” --projectId=53928 --path=“C:\Users\git\mjp-regression\Reports\20200821_164234” --email= --password="<corp account password" --type=katalon

Last lines from the console are:
2020-08-27 08:49:31.358 DEBUG 35452 — [ main] c.k.k.report.uploader.helper.HttpHelper : Request: POST https://analytics.katalon.com/api/v1/katalon/test-reports?projectId=53928&batch=1598532464128-79c81e2a-6281-48af-82b3-da44badb3e53&folderPath=TS8\20200821_164246\katalon-analytics-tmp&isEnd=true&fileName=hars-1598532464049.zip&uploadedPath=742de7d7-b048-420c-955c-4afb409a9215 HTTP/1.1
2020-08-27 08:49:31.611 DEBUG 35452 — [ main] c.k.k.report.uploader.helper.HttpHelper : Response: HttpResponseProxy{HTTP/1.1 200 [Date: Thu, 27 Aug 2020 12:49:32 GMT, Content-Type: application/json;charset=UTF-8, Transfer-Encoding: chunked, Connection: keep-alive, Set-Cookie: ga-measurement-id=UA-162147188-1; Path=/, X-Content-Type-Options: nosniff, X-XSS-Protection: 1; mode=block, Cache-Control: no-cache, no-store, max-age=0, must-revalidate, Pragma: no-cache, Expires: 0, Strict-Transport-Security: max-age=31536000 ; includeSubDomains, X-Frame-Options: DENY, vary: accept-encoding] org.apache.http.client.entity.DecompressingEntity@6cf0e0ba}
2020-08-27 08:49:31.616 INFO 35452 — [ main] c.k.k.r.uploader.UploaderApplication : Started UploaderApplication in 113.878 seconds (JVM running for 115.035)
2020-08-27 08:49:31.618 INFO 35452 — [ Thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@4b9af9a9: startup date [Thu Aug 27 08:47:38 EDT 2020]; root of context hierarchy
2020-08-27 08:49:31.619 INFO 35452 — [ Thread-2] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown.

Hi @roadbike

It is possible that the report has been uploaded to TestOps before.
If your report has been uploaded and you try to upload it again. It only updates an existed Execution, does not create a new one on TestOps
Can you try running your test again so KS will create a new report then upload it using the report uploader?

After executing a new test collection and verifying no reports from that execution were sent to TestOps, I ran this command:
java -jar “C:\Users\JavaProjects\newest jars\katalon-report-uploader-0.0.5.jar” --projectId=53928 --path=“C:\Users\git\mjp-regression\Reports\20200828_094301” --email=“" --password="********” --type=katalon

There was an error this time:

2020-08-28 09:49:08.715 ERROR 36400 — [ main] c.k.k.r.u.h.KatalonAnalyticsConnector : Cannot send data to server: https://katalon-test.s3-accelerate.amazonaws.com/24f4785a-f716-45b2-a398-20ce6388c433?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20200828T134848Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=AKIAIXB3N7Z3SQHJU4MQ%2F20200828%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=c3611af52d2982ec9cf132c0bff5ae20f85e337f6642cdafb235800913951b31

org.apache.http.conn.HttpHostConnectException: Connect to katalon-test.s3-accelerate.amazonaws.com:443 [katalon-test.s3-accelerate.amazonaws.com/13.249.117.168] failed: Connection timed out: connect
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) ~[httpclient-4.5.3.jar!/:4.5.3]
at com.katalon.kit.report.uploader.helper.HttpHelper.sendRequest(HttpHelper.java:85) ~[classes!/:0.0.5]
at com.katalon.kit.report.uploader.helper.KatalonAnalyticsConnector.uploadFile(KatalonAnalyticsConnector.java:140) ~[classes!/:0.0.5]
at com.katalon.kit.report.uploader.service.UploadService.perform(UploadService.java:89) [classes!/:0.0.5]
at com.katalon.kit.report.uploader.service.UploadService.upload(UploadService.java:68) [classes!/:0.0.5]
at com.katalon.kit.report.uploader.UploaderApplication.run(UploaderApplication.java:21) [classes!/:0.0.5]
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:776) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:760) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:747) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at com.katalon.kit.report.uploader.UploaderApplication.main(UploaderApplication.java:16) [classes!/:0.0.5]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_261]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_261]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_261]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_261]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [katalon-report-uploader-0.0.5.jar:0.0.5]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [katalon-report-uploader-0.0.5.jar:0.0.5]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [katalon-report-uploader-0.0.5.jar:0.0.5]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [katalon-report-uploader-0.0.5.jar:0.0.5]
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:1.8.0_261]
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_261]
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_261]
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_261]
at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_261]
at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_261]
at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_261]
at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_261]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:339) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) ~[httpclient-4.5.3.jar!/:4.5.3]
… 30 common frames omitted

2020-08-28 09:49:08.728 INFO 36400 — [ main] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled.
2020-08-28 09:49:08.739 ERROR 36400 — [ main] o.s.boot.SpringApplication : Application startup failed

java.lang.IllegalStateException: Failed to execute CommandLineRunner
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:779) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:760) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:747) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at com.katalon.kit.report.uploader.UploaderApplication.main(UploaderApplication.java:16) [classes!/:0.0.5]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_261]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_261]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_261]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_261]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [katalon-report-uploader-0.0.5.jar:0.0.5]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [katalon-report-uploader-0.0.5.jar:0.0.5]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [katalon-report-uploader-0.0.5.jar:0.0.5]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [katalon-report-uploader-0.0.5.jar:0.0.5]
Caused by: java.lang.IllegalStateException: org.apache.http.conn.HttpHostConnectException: Connect to katalon-test.s3-accelerate.amazonaws.com:443 [katalon-test.s3-accelerate.amazonaws.com/13.249.117.168] failed: Connection timed out: connect
at com.katalon.kit.report.uploader.helper.ExceptionHelper.wrap(ExceptionHelper.java:9) ~[classes!/:0.0.5]
at com.katalon.kit.report.uploader.helper.KatalonAnalyticsConnector.uploadFile(KatalonAnalyticsConnector.java:151) ~[classes!/:0.0.5]
at com.katalon.kit.report.uploader.service.UploadService.perform(UploadService.java:89) ~[classes!/:0.0.5]
at com.katalon.kit.report.uploader.service.UploadService.upload(UploadService.java:68) ~[classes!/:0.0.5]
at com.katalon.kit.report.uploader.UploaderApplication.run(UploaderApplication.java:21) [classes!/:0.0.5]
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:776) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
… 14 common frames omitted
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to katalon-test.s3-accelerate.amazonaws.com:443 [katalon-test.s3-accelerate.amazonaws.com/13.249.117.168] failed: Connection timed out: connect at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) ~[httpclient-4.5.3.jar!/:4.5.3]
at com.katalon.kit.report.uploader.helper.HttpHelper.sendRequest(HttpHelper.java:85) ~[classes!/:0.0.5]
at com.katalon.kit.report.uploader.helper.KatalonAnalyticsConnector.uploadFile(KatalonAnalyticsConnector.java:140) ~[classes!/:0.0.5]
… 18 common frames omitted
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:1.8.0_261]
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_261]
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_261]
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_261]
at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_261]
at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_261]
at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_261]
at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_261]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:339) ~[httpclient-4.5.3.jar!/:4.5.3]
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) ~[httpclient-4.5.3.jar!/:4.5.3]
… 30 common frames omitted

2020-08-28 09:49:08.748 INFO 36400 — [ main] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@4b9af9a9: startup date [Fri Aug 28 09:48:25 EDT 2020]; root of context hierarchy
2020-08-28 09:49:08.749 INFO 36400 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown

The report uploader submits files to katalon-test.s3-accelerate.amazonaws.com. Please make sure the S3 can be reached from your company network.

@roadbike There might be an issue with AWS’s S3 accelerated uploading endpoints. We will send you a report-uploader package that uses the normal endpoint to troubleshoot the issue.

Thank you. Sometimes, results load as expected but many times they do not. Performance has been inconsistent for several weeks.

Any update on getting the report-uploader package for me to try?

Hi. Sorry for the late response. It is more complicated than I initially thought to change the S3 endpoint (which requires modifying the server too) and therefore takes more time to implement. In the mean time, we have released a new version of report-uploader that will retry the uploading ten times. Please get the new version and let me know if it helps. Thank you.

https://github.com/katalon-studio/report-uploader/releases/tag/v0.0.7

I used v0.7 of the report loader. The reports were posted to TestOps quickly and without errors.
Thank you.

1 Like