Socket not found exception, Multiple test runs fails

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Socket not found exception, Multiple test runs fails

Fabian Otto

OS:
Windows 10 1803

Selenium Version:
3.13.1.0
Browser:
Chrome Version 67.0.3396.99 (Offizieller Build) (64-Bit)
chromedriver.exe 2.40.0 from Nuget

Browser Version:
67.0.3396.99 (Offizieller Build) (64-Bit)

Test Framework:
xUnit

Programming IDE:
Visual Studio 2017 v15.7.5

Expected Behavior -

Select multiple test from test explorer and run in debug mode

Actual Behavior -

Select multiple test from test explorer and run in debug mode. Only the first test finished succesfuly.
When the second test wants to initialize the driver it crashes with the folowing exception:

`Testname: SellyconSelniumXUnit.ChromeTests.ChromeUploadDxfConfigurator
Test FullName: SellyconSelniumXUnit.ChromeTests.ChromeUploadDxfConfigurator
Testquelle: D:\workspace......\ChromeTests.cs Zeile 39
Testergebnis: Fehlgeschlagene
Testdauer: 0:00:41,699

Ergebnis StackTrace:
----- Inner Stack Trace #1 (OpenQA.Selenium.WebDriverException) -----
bei OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
bei OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) bei OpenQA.Selenium.Remote.RemoteTimeouts.ExecuteSetTimeout(String timeoutType, TimeSpan timeToWait) bei OpenQA.Selenium.Remote.RemoteTimeouts.set_PageLoad(TimeSpan value) bei SellyconSeleniumLibrary.WrapperFactory.BrowserFactory.InitBrowser[T,TDriver](Action1 optionCallback, TDriver tdriver)
bei SellyconSelniumXUnit.ChromeTests.ChromeUploadDxfConfigurator() in D:\workspace\SellyconSeleniumIntegration\SellyconSelniumXUnit\ChromeTests.cs:Zeile 41.
----- Inner Stack Trace #2 (OpenQA.Selenium.WebDriverException) -----
bei OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
bei OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
bei OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
bei OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) bei OpenQA.Selenium.Remote.RemoteWebDriver.Close() bei SellyconSeleniumLibrary.WrapperFactory.BrowserFactory.CloseDriver() bei SellyconSelniumXUnit.ChromeTests.Dispose() in D:\workspace\SellyconSeleniumIntegration\SellyconSelniumXUnit\ChromeTests.cs:Zeile 267. bei Xunit.Sdk.ExecutionTimer.Aggregate(Action action) bei ReflectionAbstractionExtensions.DisposeTestClass(ITest test, Object testClass, IMessageBus messageBus, ExecutionTimer timer, CancellationTokenSource cancellationTokenSource) bei Xunit.Sdk.TestInvoker1.<>c__DisplayClass47_0.b__1()
bei Xunit.Sdk.ExceptionAggregator.Run(Action code)
----- Inner Stack Trace -----
bei System.Net.HttpWebRequest.GetResponse()
bei OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
----- Inner Stack Trace -----
bei System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
Ergebnis Meldung:
System.AggregateException : Mindestens ein Fehler ist aufgetreten.
---- OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Die Verbindung mit dem Remoteserver kann nicht hergestellt werden. ---> System.Net.Sockets.SocketException: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte 127.0.0.1:63311
bei System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
bei System.Net.HttpWebRequest.GetRequestStream()
bei OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
bei OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
bei OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
bei OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
---- OpenQA.Selenium.WebDriverException : A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:63311/session//window. The status of the exception was ConnectFailure, and the message was: Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.
-------- System.Net.WebException : Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.
------------ System.Net.Sockets.SocketException : Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte 127.0.0.1:63311


How can i fix this ?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c9417baf-1583-4cda-b8ac-7d597c07ed67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Socket not found exception, Multiple test runs fails

Kristopher Porter
Did you get any fixes? 

On Thursday, 12 July 2018 05:09:09 UTC+1, Fabian Otto wrote:

OS:
Windows 10 1803

Selenium Version:
3.13.1.0
Browser:
Chrome Version 67.0.3396.99 (Offizieller Build) (64-Bit)
chromedriver.exe 2.40.0 from Nuget

Browser Version:
67.0.3396.99 (Offizieller Build) (64-Bit)

Test Framework:
xUnit

Programming IDE:
Visual Studio 2017 v15.7.5

Expected Behavior -

Select multiple test from test explorer and run in debug mode

Actual Behavior -

Select multiple test from test explorer and run in debug mode. Only the first test finished succesfuly.
When the second test wants to initialize the driver it crashes with the folowing exception:

`Testname: SellyconSelniumXUnit.ChromeTests.ChromeUploadDxfConfigurator
Test FullName: SellyconSelniumXUnit.ChromeTests.ChromeUploadDxfConfigurator
Testquelle: D:\workspace......\ChromeTests.cs Zeile 39
Testergebnis: Fehlgeschlagene
Testdauer: 0:00:41,699

Ergebnis StackTrace:
----- Inner Stack Trace <a href="https://github.com/SeleniumHQ/selenium/pull/1" style="background-color:transparent;color:rgb(3,102,214)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSeleniumHQ%2Fselenium%2Fpull%2F1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGQ-z4IjHf0F5bbpqSNmhNpvF_-yA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSeleniumHQ%2Fselenium%2Fpull%2F1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGQ-z4IjHf0F5bbpqSNmhNpvF_-yA&#39;;return true;">#1 (OpenQA.Selenium.WebDriverException) -----
bei OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
bei OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) bei OpenQA.Selenium.Remote.RemoteTimeouts.ExecuteSetTimeout(String timeoutType, TimeSpan timeToWait) bei OpenQA.Selenium.Remote.RemoteTimeouts.set_PageLoad(TimeSpan value) bei SellyconSeleniumLibrary.WrapperFactory.BrowserFactory.InitBrowser[T,TDriver](Action1 optionCallback, TDriver tdriver)
bei SellyconSelniumXUnit.ChromeTests.ChromeUploadDxfConfigurator() in D:\workspace\SellyconSeleniumIntegration\SellyconSelniumXUnit\ChromeTests.cs:Zeile 41.
----- Inner Stack Trace <a href="https://github.com/SeleniumHQ/selenium/pull/2" style="background-color:transparent;color:rgb(3,102,214)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSeleniumHQ%2Fselenium%2Fpull%2F2\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHDOA_MxCPDrqTwOy6r-ILkhuJt-w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSeleniumHQ%2Fselenium%2Fpull%2F2\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHDOA_MxCPDrqTwOy6r-ILkhuJt-w&#39;;return true;">#2 (OpenQA.Selenium.WebDriverException) -----
bei OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
bei OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
bei OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
bei OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) bei OpenQA.Selenium.Remote.RemoteWebDriver.Close() bei SellyconSeleniumLibrary.WrapperFactory.BrowserFactory.CloseDriver() bei SellyconSelniumXUnit.ChromeTests.Dispose() in D:\workspace\SellyconSeleniumIntegration\SellyconSelniumXUnit\ChromeTests.cs:Zeile 267. bei Xunit.Sdk.ExecutionTimer.Aggregate(Action action) bei ReflectionAbstractionExtensions.DisposeTestClass(ITest test, Object testClass, IMessageBus messageBus, ExecutionTimer timer, CancellationTokenSource cancellationTokenSource) bei Xunit.Sdk.TestInvoker1.<>c__DisplayClass47_0.b__1()
bei Xunit.Sdk.ExceptionAggregator.Run(Action code)
----- Inner Stack Trace -----
bei System.Net.HttpWebRequest.GetResponse()
bei OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
----- Inner Stack Trace -----
bei System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
Ergebnis Meldung:
System.AggregateException : Mindestens ein Fehler ist aufgetreten.
---- OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Die Verbindung mit dem Remoteserver kann nicht hergestellt werden. ---> System.Net.Sockets.SocketException: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte <a href="http://127.0.0.1:63311" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A63311\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGwDwqylmwc48j4j-RRTl1IVK9KSA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A63311\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGwDwqylmwc48j4j-RRTl1IVK9KSA&#39;;return true;">127.0.0.1:63311
bei System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
bei System.Net.HttpWebRequest.GetRequestStream()
bei OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
bei OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
bei OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
bei OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
---- OpenQA.Selenium.WebDriverException : A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL <a href="http://localhost:63311/session//window" rel="nofollow" style="background-color:transparent;color:rgb(3,102,214)" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A63311%2Fsession%2F%2Fwindow\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE3H30C58meVqXq7i60c5AebbCWTQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A63311%2Fsession%2F%2Fwindow\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE3H30C58meVqXq7i60c5AebbCWTQ&#39;;return true;">http://localhost:63311/session//window. The status of the exception was ConnectFailure, and the message was: Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.
-------- System.Net.WebException : Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.
------------ System.Net.Sockets.SocketException : Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte <a href="http://127.0.0.1:63311" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A63311\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGwDwqylmwc48j4j-RRTl1IVK9KSA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A63311\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGwDwqylmwc48j4j-RRTl1IVK9KSA&#39;;return true;">127.0.0.1:63311


How can i fix this ?


-- 
Texthelp Ltd is a limited company registered in Belfast, N. Ireland with registration number NI31186 having its registered office and principal place of business at Lucas Exchange, 1 Orchard Way, Antrim, N. Ireland, BT41 2RU.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d3f9b7ec-2db4-430d-8800-24b1211d7f9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.