虚拟XP机器上的Selenium网格 - 连接错误

时间:2011-09-13 09:28:22

标签: selenium-webdriver selenium-grid

我正在虚拟Windows XP计算机上运行针对FF 6.0的测试。获胜者

 java -jar selenium-server-standalone-2.5.0.jar -role webdriver -hub http://192.168.1.149:4444/grid/register -port 5558 -host 10.0.2.15 -browser "browserName=firefox, version=6, platform=WINDOWS"

给我以下结果:

17:53:22.667 INFO - Started SocketListener on 0.0.0.0:5559
17:53:22.667 INFO - Started org.openqa.jetty.jetty.Server@5dccce3c
17:53:22.668 INFO - using the json request : {"class":"org.openqa.grid.common.RegistrationRequest","capabilities":[{" version":"6","browserName":"firefox"," platform":"WINDOWS"}],"configuration":{"port":5559,"host":"192.168.1.135","hubHost":"192.168.1.149","registerCycle":5000,"hub":"http://192.168.1.149:4444/grid/register","url":"http://10.0.2.15:5559/wd/hub","register":true,"singleWindow":"-role","proxy":"org.openqa.grid.selenium.proxy.WebDriverRemoteProxy","maxSession":5,"browser":"browserName=firefox, version=6, platform=WINDOWS","role":"webdriver","hubPort":4444}}
17:53:22.669 INFO - starting auto register thread. Will try to register every 5000 ms.
17:53:22.669 INFO - Registering the node to hub :http://192.168.1.149:4444/grid/register

不幸的是,它永远不会完成

17:53:25.486 INFO - Executing: org.openqa.selenium.remote.server.handler.Status@43a6684f at URL: /status)
17:53:25.488 INFO - Done: /status

有点像“注册”这个词。

因此,在运行测试时出现错误:

** Erubis 2.6.6
Loaded suite test/selenium/website_smoke_tests
Started
E
Finished in 21.022798 seconds.

  1) Error:
test_top_page(WebsiteSmokeTest):
Errno::ETIMEDOUT: Connection timed out - connect(2)

该节点在http://192.168.1.149:4444/grid/console上可见。

1 个答案:

答案 0 :(得分:-1)

问题解决了。这是我连接的错误。从未在VM上获得Hub to Node的响应。我的坏。