|
2017-04-18 17:45:44,642 [7232] ERROR TestWriter.Common.Log4net.Log4netLoggingService - 计算并记录执行结果到数据库出错:A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:18500/session. The status of the exception was ReceiveFailure, and the message was: The underlying connection was closed: An unexpected error occurred on a receive.
OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:18500/session. The status of the exception was ReceiveFailure, and the message was: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。. ---> System.Net.Sockets.SocketException: 远程主机强迫关闭了一个现有的连接。
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
--- End of inner exception stack trace ---
at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities)
at TestWriter.Web.SeleniumEmulator.SeleniumBrowser.?????????????????????????????????????????(Uri , ICapabilities )
at TestWriter.Web.SeleniumEmulator.SeleniumBrowser.?????????????????????????????????????????(BrowserCoreTypes )
at TestWriter.Web.SeleniumEmulator.SeleniumBrowser.Initialize()
at TestWriter.Web.SeleniumEmulator.SeleniumEmulator.Start(DeviceInfo _deviceInfo, ApplicationCapability _capablity, String& info)
at Bwf.EmulatorServices.EmulatorCreator.GetCommonEmulator(ApplicationCapability capability, DeviceInfo deviceInfo, String& info)
at TestWriter.Agent.Core.CommonExecuteEnginee.CheckEmulator(ExecuteTest test, ExecuteTestStep step, ExecuteTestItem caseItem)
at TestWriter.Agent.Core.CommonExecuteEnginee.ExecuteTestCase(ExecuteTestItem testcase, ExecuteTest test)
at TestWriter.Agent.Core.CommonExecuteEnginee.ExecuteTest(ExecuteTest& test) |
|