运行selenium网格演示时出错

时间:2012-05-08 05:43:57

标签: selenium selenium-grid demo

我正在学习实施selenium Grid。

当我尝试运行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

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

提前感谢。

2 个答案:

答案 0 :(得分:0)

您可以转到http://localhost:4444/并确认网格是否已启动?

答案 1 :(得分:0)

如果你刚刚开始,你应该使用Selenium Grid 2.你正在使用的演示是Selenium Grid 1,它实际上是一个死的项目。所有新的努力都将进入网格2,保证向后兼容。

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