简体   繁体   English

无法通过Jenkins执行NUnit Selenium测试-目标计算机主动拒绝连接

[英]Unable to execute NUnit Selenium tests through Jenkins - target machine actively refused connection

I am trying to execute Selenium tests written in C#.NET with NUnit through Jenkins, but the following error message is displayed: 我正在尝试通过Jenkins用NUnit执行用C#.NET编写的Selenium测试,但是显示以下错误消息:

-> error: Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:13748 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

My build configuration in Jenkins is as follows: 我在Jenkins中的构建配置如下: 在此处输入图片说明

The solution appears to build successfully, but again, upon executing the tests I receive the above error message. 解决方案似乎可以成功构建,但是再次执行测试后,我收到了以上错误消息。

Note: I've checked my firewall settings and Jenkins is allowed through the firewall. 注意:我已经检查了防火墙设置,并允许Jenkins通过防火墙。

Any feedback would be greatly appreciated. 任何反馈将不胜感激。

Selenium was instaniated before the test run (BeforeTestRun). 在测试运行之前(BeforeTestRun)实例化了硒。 This meant any subsequent test executed after the first one would have no reference to the instance of the WebDriver, as it was not re-instantiated at the start of a scenario. 这意味着在第一个测试之后执行的任何后续测试都不会引用WebDriver实例,因为在场景开始时并未重新实例化它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 目标机器主动拒绝连接 - Target Machine Actively Refused Connection 无法连接到远程服务器:由于目标计算机主动拒绝连接,因此无法建立连接 - Unable to connect to the remote server: No connection could be made because the target machine actively refused it 无法连接到远程服务器 ---> 无法建立连接,因为目标机器主动拒绝它 - Unable to connect to the remote server ---> No connection could be made because the target machine actively refused it 无法通过 SSH 连接到 PostgreSQL 服务器:无法建立连接,因为目标机器主动拒绝它 - Unable to connect to PostgreSQL server via SSH: No connection could be made because the target machine actively refused it SignalR错误“由于目标机器主动拒绝连接,因此无法建立连接” - SignalR Error “No connection could be made because the target machine actively refused it” 无法建立连接,因为目标计算机主动拒绝了它216.58.212.106:443 - No connection could be made because the target machine actively refused it 216.58.212.106:443 '由于目标机器主动拒绝它,因此无法建立连接 - 'No connection could be made because the target machine actively refused it 由于目标计算机主动拒绝连接,因此无法建立连接-客户端 - No connection could be made because the target machine actively refused it - client side 无法建立连接,因为目标计算机主动拒绝了127.0.0.1:8000 - No connection could be made because the target machine actively refused it 127.0.0.1:8000 由于目标计算机主动拒绝连接,因此无法建立连接-套接字程序 - No connection could be made because the target machine actively refused it - Socket Program
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM