Selenium Grid Hub操作超时 [英] Selenium Grid Hub Operation timed out

查看:57
本文介绍了Selenium Grid Hub操作超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在使用Mountain Lion Mac计算机作为集线器安装的Windows 7 VM节点上运行Behat Tests.

I am trying to run Behat Tests on the Windows 7 VM node installed using my Mountain Lion Mac computer as hub.

我正在使用最新的seleniun(2.39.0)

I am using the latest seleniun (2.39.0)

我在节点VM上运行以下命令

I run the following command on the node VM

java -jar selenium-server-standalone-2.39.0.jar -role node -hub http://10.0.2.2:4444/grid/register -browser "browserName=internet explorer,version=8,maxinstances=1" -Dwebdriver.ie.driver="D:\tools\IEDriverServer.exe"

这会将请求发送到集线器计算机,并且它似乎"好像集线器已收到此消息,这是因为当我在集线器计算机上访问localhost:4444/grid/console时,它会显示已注册的节点(请参见屏幕快照)下方)

This sends the request to the hub machine, and it "seems" as though the hub has received this, this is because when I access localhost:4444/grid/console on the hub machine it shows the registered node (see screenshot below)

但是,当集线器尝试向节点发送请求时出现错误,但由于连接被拒绝而无法发送.但是我已经禁用了Windows防火墙,所以该连接应该正确吗?

But the error comes when the hub tries to send a request to the node and it can't because the connection is refused. But I have disabled the windows firewall so this connection should go through right?

任何帮助将不胜感激!

推荐答案

因此,我发现了我的问题,并且与此处发布的命令无关.我没有为我的VM授予足够的网络权限以允许连接.最简单的解决方案是使VM充当网络上的独立计算机,从而解决了所有问题:).

So, I figured out my problem and it was nothing to do with the commands posted here. I did not give enough network permissions to my VM to allow the connection. Easiest solution was to make the VM act as a seperate computer on the network, which solved all the problems :).

这篇关于Selenium Grid Hub操作超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆