Test execution throught suite displays "org.openqa.selenium.WebDriverException: java.net.SocketException: Connection reset"


I am executing the test suite through Katalon Studio 5.8.6 and my test cases are failing due to “org.openqa.selenium.WebDriverException: java.net.SocketException: Connection reset”.

Can some one please help me to understand what are the possible causes of this error message? Also, let me know in case Katalon has any setting where we can set a maximum time out option.

@riya_r Are you running the test on Edge?

If yes, there is a post which shares how to fix this error.

@manpreet.mukkar: No I am using Google Chrome version.

Hello @riya_r There can be an issue with your Chrome Driver then. I would suggest you to give this post a read

and then try any of the below approach. If possible you should try updating the driver Manually.

Connection reset simply means that a TCP RST was received. This happens when your peer receives data that it can’t process, and there can be various reasons for that. A reset packet is simply one with no payload and with the RST bit set in the TCP header flags. The simplest is when you close the java socket, and then write more data on the output stream. By closing the socket, you told your peer that you are done talking, and it can forget about your connection. When you send more data on that stream anyway, the peer rejects it with an RST to let you know it isn’t listening.

There are several possible causes.

  • The other end has deliberately reset the connection.
  • Writing to a connection that the other end has already closed
  • Closing a socket when there is unread data in the socket receive buffer.
  • In Windows, ‘software caused connection abort’, which is not the same as ‘connection reset’, is caused by network problems sending from your end.