Github retrieved test cases execution fails due to connection time out

Hi all,

Just wondering whether any one would you able to help me or point to the right direction. I’ve pulled a test case from Git hub and trying to execute it from my machine. But,the execution fails with “Connection timed out” error. For more information, please see below.

Katalon Studio - version 6.1.1

PS : If the same test case was created locally on my machine, then I’m able to execute it successfully.

For your reference, I’ve provided the Event log below. Would appreciate your help

Tue May 28 16:04:07 AEST 2019
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1199)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:259)
at com.kms.katalon.application.utils.ServerAPICommunicationUtil.sendAndReceiveData(ServerAPICommunicationUtil.java:216)
at com.kms.katalon.application.utils.ServerAPICommunicationUtil.invoke(ServerAPICommunicationUtil.java:113)
at com.kms.katalon.application.utils.ServerAPICommunicationUtil.post(ServerAPICommunicationUtil.java:47)
at com.kms.katalon.tracking.service.TrackingApiService.post(TrackingApiService.java:24)
at com.kms.katalon.tracking.service.TrackingService.sendEventPayload(TrackingService.java:38)
at com.kms.katalon.tracking.service.TrackingService.lambda$0(TrackingService.java:24)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Tue May 28 16:04:07 AEST 2019
Cannot send request, retry to send.

Tue May 28 16:04:07 AEST 2019
Cannot send request, retry to send.

Proxy found for HTTP @ XX.XX.XX.XX:8080.
Request sent successfully.

Thanks,
Krishnan

Does the machine you are trying to run test case has some network configuration as of your local machine ?

Hi Manpreet,
Thanks for your response, yest I’m on corporate network with proxy configuration. But, the Katalon Studio has been configured not to use proxies. Please let me know if you need further details.

Thanks,
Krishnan

So as far as I am understanding this your local machine is not under the corporate network ?

Thanks for your response. No, its on a corporate network

@KGuru,

I suppose you have configured the Proxy setup for Katalon Studio. But unfortunately, I believe KS does not pass the proxy config info to Git; Git requires you to set proxy configuration on its own. See

The Katalon documentation on Git interation does not mention how to configure KS & Git when you are behind the (annoying) proxy. It’s a shortage. I think the document should be improved.

Thanks for your response. Actualy, I don’t have any trouble in fetching from repositories. Just having trouble executing the fetched test cases from Katlon studio.

@KGuru

Then have you setup Proxy config into your Katalon Studio?
https://docs.katalon.com/katalon-studio/docs/proxy-preferences.html

@kazurayam

As per your response, I’ve tried with the below configuration and still execution fails with same error

  1. Proxy Option - No, proxy
  2. Proxy Option - Use System configuration
  3. Proxy Option - Manual proxy configuration
    Proxy server type : HTTP
    Address : My Corporate proxy IP address
    Port : My Corporate proxy port number (not 8080)

I had an interesting observation with setting 3, as per the below log you can find that Proxy found for HTTP has a different port number, but IP address is same my Corporate proxy IP eg my corportate IP address is : 12.12.12.12 and port number is : 2020 , in the log proxy config is displayed as 12.12.12.12 8080

Wed May 29 12:09:45 AEST 2019
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1199)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:259)
at com.kms.katalon.application.utils.ServerAPICommunicationUtil.sendAndReceiveData(ServerAPICommunicationUtil.java:216)
at com.kms.katalon.application.utils.ServerAPICommunicationUtil.invoke(ServerAPICommunicationUtil.java:113)
at com.kms.katalon.application.utils.ServerAPICommunicationUtil.post(ServerAPICommunicationUtil.java:47)
at com.kms.katalon.tracking.service.TrackingApiService.post(TrackingApiService.java:24)
at com.kms.katalon.tracking.service.TrackingService.sendEventPayload(TrackingService.java:38)
at com.kms.katalon.tracking.service.TrackingService.lambda$0(TrackingService.java:24)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Wed May 29 12:09:45 AEST 2019
Cannot send request, retry to send.

Wed May 29 12:09:45 AEST 2019
Cannot send request, retry to send.

Proxy found for HTTP @ 10.XX.XX.XX:8080.
Request sent successfully.

Could you take a screenshot of your KS Proxy Preference dialog? to prove you gave ‘2020’, not ‘8080’, as the proxy port number.

In the Katalo Prefierence > Proxy dialog, you will find an option labeled “Disable BrowserMob proxy”.

How do you find the option is set in your case?


see the following post to find what is BrowserMob proxy.

@kazurayam

After little bit of investigation, I found the test case execution failed as I was trying to save the git repository files in network drive. The moment, I stored it in my local drive, I was able to execute the test case successfully.

So,for any Git repository based execution the ideal method is to fetch the test cases and store it locally.

Thanks all for your assistance and support.