0

我正在学习实现硒网格。

当我尝试运行 DEMO 时,它显示以下错误。谁能帮我 ?

D:\selenium-grid\selenium-grid-1.0.8>ant run-demo-in-sequence Buildfile: build.xml

run-demo-in-sequence:
 [java] [Parser] Running:
 [java]   Selenium Grid Demo In Sequence
 [java]
 [java] Nov 7, 2011 4:30:19 PM
com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage
startSeleniumSession
 [java] INFO: Contacting Selenium RC at localhost:4444
 [java] Nov 7, 2011 4:30:19 PM
 com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage
closeSeleniumSession
 [java] INFO: Closing Selenese session:
 com.thoughtworks.selenium.DefaultSelenium@4d3c7378
 [java] Nov 7, 2011 4:30:19 PM
com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage
startSeleniumSession
 [java] INFO: Contacting Selenium RC at localhost:4444
 [java] Nov 7, 2011 4:30:19 PM
 com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage
 closeSeleniumSession
 [java] INFO: Closing Selenese session:
 com.thoughtworks.selenium.DefaultSelenium@788ab708
 [java] Nov 7, 2011 4:30:19 PM
 com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage
 startSeleniumSession
 [java] INFO: Contacting Selenium RC at localhost:4444
 [java] Nov 7, 2011 4:30:19 PM
 com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage
 closeSeleniumSession
 [java] INFO: Closing Selenese session:
 com.thoughtworks.selenium.DefaultSelenium@789934d4
 [java] Nov 7, 2011 4:30:19 PM
  com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage
  startSeleniumSession
 [java] INFO: Contacting Selenium RC at localhost:4444
 [java] Nov 7, 2011 4:30:19 PM
 com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage
  closeSeleniumSession
 [java] INFO: Closing Selenese session:
  com.thoughtworks.selenium.DefaultSelenium@3747c1db
  [java]
 *     [java] ===============================================*
 *     [java] Selenium Grid Demo In Sequence*
 *     [java] Total tests run: 4, Failures: 4, Skips: 0*
 *     [java] ===================================*============
  [java]

 *BUILD FAILED*
 D:\selenium-grid\selenium-grid-1.0.8\build.xml:116: Java returned: 1 
 Total time : 0 seconds

我也没有启动任何浏览器..请任何人帮助我。

提前致谢。

4

2 回答 2

0

你能去http://localhost:4444/确认grid是否启动了吗?

于 2012-05-08T05:50:26.050 回答
0

如果您刚刚开始,您应该使用 Selenium Grid 2。您使用的演示适用于 Selenium Grid 1,这实际上是一个死项目。所有新的努力都进入了保证向后兼容的 Grid 2。

请参阅http://code.google.com/p/selenium/wiki/Grid2

于 2012-05-13T14:49:27.827 回答