我的Selenium Grid 1.0.8与集线器和同一台机器上的几个遥控器运行良好。我的testNG测试全部成功运行。
当我在另一台机器上启动遥控器时,一切看起来都很好。集线器控制台显示默认环境“* firefox”可用的遥控器。
但是,当我运行测试时(仍然在集线器上),另一个盒子上的遥控器永远不能正常工作。他们不断从集线器取消注册。
我已经禁用了防火墙,我可以在两个盒子之间ping通。有没有人遇到过类似的问题?
远程控制日志:
[java] 21:34:19.479 WARN - http://192.168.1.129:4444/heartbeat?host=localhost&port=5539的中心没有我们注册 [java] 21:34:49.496 INFO - 检查与集线器的连接... [java] 21:34:49.496 INFO - http://192.168.1.129:4444/heartbeat?host=localhost&port=5539上的Ping Hub
中心日志:
[java] INFO:垃圾收集不可用的RC和陈旧的会话......
[java] Jun 16, 2011 9:39:52 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[java] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
[java] Jun 16, 2011 9:39:52 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[java] INFO: Retrying request
[java] Jun 16, 2011 9:39:52 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[java] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
[java] Jun 16, 2011 9:39:52 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[java] INFO: Retrying request
[java] Jun 16, 2011 9:39:52 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[java] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
[java] Jun 16, 2011 9:39:52 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[java] INFO: Retrying request
答案 0 :(得分:0)
注册节点时是否传递了正确的主机值?为了正确处理代理,节点必须在向集线器注册时为节点提供可路由的主机名。如果没有此值,集线器将无法与节点通信,并将取消注册它。