Selenium – A exception with a null response was thrown sending an HTTP request
来源:互联网 发布:ssh连接linux 编辑:程序博客网 时间:2024/06/15 00:22
[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
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
![Selenium A exception with a null response was thrown sending an HTTP request Selenium A exception with a null response was thrown sending an HTTP request](file:///F:%5CUsers%5CNOWHER%7E1%5CAppData%5CLocal%5CTemp%5C%W@GJ$ACOF%28TYDYECOKVDYB.png)
[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)
0 0
- Selenium – A exception with a null response was thrown sending an HTTP request
- kafka Exception thrown when sending a message with key='null'
- 【kafka】Exception thrown when sending a message with key='null' and payload='lizhenjuan;99' to topic
- Could not create the view: An unexpected exception was thrown. java.lang.NullPointerException a
- java-No exception of type ConfigurationException can be thrown; an exception type must be a subclass
- oracle数据库 java.lang.Exception: Exception in sending Request :: null
- java.lang.Exception: Exception in sending Request :: null
- oracle java.lang.Exception: Exception in sending Request :: null
- java.lang.Exception: Exception in sending Request :: null
- java.lang.Exception: Exception in sending Request :: null
- java.lang.Exception: Exception in sending Request :: null
- Sending an HTTP POST request on iOS
- Could not create the view: An unexpected exception was thrown
- Could not create the view: An unexpected exception was thrown.
- Could not create the view: An unexpected exception was thrown
- Could not create the view: An unexpected exception was thrown
- Could not create the view: An unexpected exception was thrown.
- Could not create the view: An unexpected exception was thrown.
- Java中this关键字的使用
- python中的随机数
- S3C2440之Camera驱动代码模板(RealView MDK)
- Android日期控件显示时屏蔽软键盘自动弹出
- C#中的委托与事件
- Selenium – A exception with a null response was thrown sending an HTTP request
- 第5周项目2——对象作为数据成员
- iOS开源库--最全的整理
- 第5周项目2-对象作为数据成员
- 第五周阅读程序5:
- 【LabVIEW信号处理】加速度信号到速度信号(1)
- 第五周项目2对象作为数组成员
- Selenium WebDriver – Common Used API
- Java基础第二十天--多线程1