Selenium – A exception with a null response was thrown sending an HTTP request
2015-04-08 09:19
2663 查看
[Problem]
We use teamcity agent to run automation(mstest, selenium). It always fail with below error message. But when I run automation in this agent machine loacally, it works very well.Test method EFSchools.EnglishFirst.Odin.UITest.Features.AdvancedSearch.AdvancedSearchFeature.UserCanSearchContactByAdvancedSearch threw exception:
OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:21516/session/46ed7be5-0e83-45e7-9b91-1dd961847f06/element/d1808de8-640e-4316-8f0b-3ee2b47d7c52/value. 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: An existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
[Things I tried]
1. check wether teamcity agent service is started.
2. IE configuration is correct.
– security consistant in each level
– clear history when close browser
3. User fiddler to check every call ,since we can’t view the running display via teamcity
4. IE 11 is not supported with current web driver
5. narrow down the issue wether it’s repro on other browser(e.g: chrom or firefox)
We use teamcity agent to run automation(mstest, selenium). It always fail with below error message. But when I run automation in this agent machine loacally, it works very well.Test method EFSchools.EnglishFirst.Odin.UITest.Features.AdvancedSearch.AdvancedSearchFeature.UserCanSearchContactByAdvancedSearch threw exception:
OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:21516/session/46ed7be5-0e83-45e7-9b91-1dd961847f06/element/d1808de8-640e-4316-8f0b-3ee2b47d7c52/value. 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: An existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
[Things I tried]
1. check wether teamcity agent service is started.
2. IE configuration is correct.
– security consistant in each level
– clear history when close browser
3. User fiddler to check every call ,since we can’t view the running display via teamcity
4. IE 11 is not supported with current web driver
5. narrow down the issue wether it’s repro on other browser(e.g: chrom or firefox)
相关文章推荐
- kafka Exception thrown when sending a message with key='null'
- kafka Exception thrown when sending a message with key='null'
- Ajax Throws Sys.WebForms.PageRequestManagerErrorException with Response.Redirect的解决方法
- 「Oralce」java.lang.Exception: Exception in sending Request :: null
- Debugger:: An unhandled non-continuable exception was thrown during process load
- ASP.NET: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. on Win7 64bit
- oracle java.lang.Exception: Exception in sending Request :: null
- Ajax Throws Sys.WebForms.PageRequestManagerErrorException with Response.Redirect的解决方法
- Oracle 10g java.lang.Exception: Exception in sending Request :: null
- java.lang.Exception: Exception in sending Request :: null (oracle 10g)
- Oracle 10g java.lang.Exception: Exception in sending Request :: null
- oracle em启运的时候的时候报错java.lang.Exception: Exception in sending Request :: null
- Windows 7 安装 Oracle 10g 后 用sys用户登录em时,界面出来了,但报了一个错:java.lang.Exception: Exception in sending Request :: null
- java.lang.Exception: Exception in sending Request :: null
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
- XMLHttpRequest.responseXML.documentElement=null的问题
- 错误 java.lang.Exception: Exception in sending Request :: null
- 进入em后,报错:java.lang.Exception: Exception in sending Request : null的解决方法
- 访问OEM错误:java.lang.Exception: Exception in sending Request :: null
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 解决办法