ubuntu - Selenium 节点无法向集线器注册

标签 ubuntu windows-7-x64 selenium-grid

我在作为集线器的计算机上运行以下命令(IP地址:192.168.55.209,操作系统:Ubuntu):

java -jar selenium-server-standalone-2.25.0.jar \ -role hub -port 4444

然后我在另一台机器上作为节点运行了下面的另一个命令(操作系统:Windows 7 64位):

java -jar "selenium-server-standalone-2.25.0.jar" \ -role node -port 5555 -hub http://192.168.55.209:4444/grid/register \browser browserName=firefox,platform=WINDOWS

但是我收到以下错误消息:请帮助找出问题所在。 (我已禁用防火墙)

> Nov 05, 2012 5:12:37 PM org.openqa.grid.selenium.GridLauncher main
> INFO: Launching a selenium grid node Nov 05, 2012 5:12:38 PM
> org.openqa.grid.internal.utils.SelfRegisteringRemote startRemoteServer
> WARNING: error getting the parameters from the hub. The node may end
> up with wrong timeouts.A JSONObject text must begin  with '{' at
> character 1 17:12:38.064 INFO - Java: Oracle Corporation 23.3-b01
> 17:12:38.066 INFO - OS: Windows 7 6.1 amd64 17:12:38.068 INFO -
> v2.25.0, with Core v2.25.0. Built from revision 17482 17:12:38.172
> INFO - RemoteWebDriver instances should connect to:
> http://127.0.0.1:5555/wd/hub 17:12:38.174 INFO - Version Jetty/5.1.x
> 17:12:38.174 INFO - Started
> HttpContext[/selenium-server/driver,/selenium-server/driver]
> 17:12:38.175 INFO - Started
> HttpContext[/selenium-server,/selenium-server] 17:12:38.175 INFO -
> Started HttpContext[/,/] 17:12:38.177 INFO - Started
> org.openqa.jetty.jetty.servlet.ServletHandler@508969c3 17:12:38.177
> INFO - Started HttpContext[/wd,/wd] 17:12:38.181 INFO - Started
> SocketListener on 0.0.0.0:5555 17:12:38.181 INFO - Started
> org.openqa.jetty.jetty.Server@19dda5ce 17:12:38.183 INFO - using the
> json request :
> {"class":"org.openqa.grid.common.RegistrationRequest","capabilities":[{"pla
> tform":"VISTA","seleniumProtocol":"Selenium","browserName":"*firefox","maxInstances":5},{"platform":"VISTA","seleniumPro
> tocol":"Selenium","browserName":"*googlechrome","maxInstances":5},{"platform":"VISTA","seleniumProtocol":"Selenium","bro
> wserName":"*iexplore","maxInstances":1},{"platform":"VISTA","seleniumProtocol":"WebDriver","browserName":"firefox","maxI
> nstances":5},{"platform":"VISTA","seleniumProtocol":"WebDriver","browserName":"chrome","maxInstances":5},{"platform":"WI
> NDOWS","seleniumProtocol":"WebDriver","browserName":"internet
> explorer","maxInstances":1}],"configuration":{"port":5555,
> "register":true,"host":"192.168.55.94","proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy","maxSession":5,"hubHo
> st":"192.168.55.209","role":"node","registerCycle":5000,"hub":"http://192.168.55.209:4444/grid/register","hubPort":4444,
> "url":"http://192.168.55.94:5555","remoteHost":"http://192.168.55.94:5555"}}
> 17:12:38.185 INFO - starting auto register thread. Will try to
> register every 5000 ms. 17:12:38.185 INFO - Registering the node to
> hub :http://192.168.55.209:4444/grid/register 17:12:38.189 INFO -
> couldn't register this node : Error sending the registration request.
> 17:12:43.194 INFO - couldn't register this node : hub down or not
> responding. 17:12:48.197 INFO - couldn't register this node : hub down
> or not responding.

最佳答案

我知道这个问题已经有几个月了,但我也遇到了同样的问题,并且能够通过在 AWS 的防火墙设置中打开集线器的端口来解决该问题。

关于ubuntu - Selenium 节点无法向集线器注册,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13241412/

相关文章:

python - 在哪里手动安装python文件

windows-7-x64 - 如何像linux一样在windows中拆分文件

selenium - [ Selenium 网格] : Unable to launch Robot tests on remote machine

selenium - 在Selenium Grid中使用无限的maxInstance

ubuntu - HAproxy REQ_SSL_SNI 和 SSL 终止

ubuntu - Upstart:如何为守护进程执行自定义停止命令?

linux - Bash poweroff 脚本挂起系统

windows-7 - Mercurial 扩展无法在 Windows 7 x64 中运行?

python - Windows 上 Python 控制台中的进度条

java - 使用selenium grid remote webdriver java client截屏返回乱码