我在作为集线器的机器上运行以下命令(IP 地址:192.168.55.209,操作系统:Ubuntu):
java -jar selenium-server-standalone-2.25.0.jar \ -role hub -port 4444
然后我在另一台机器上作为节点运行下面的另一个命令(操作系统:Windows 7 64bit):
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.