无法运行 webdriver 测试,Hudson 永远挂起
我的功能测试每 5 分钟在 hudson 上运行一次。它工作正常,除了几乎(并非总是)每天早上 6:00 左右(我检查了系统日志,当时没有大作业占用系统资源),我得到由 org.openqa.selenium 引起的 java.lang.ExceptionInInitializerError .WebDriverException:无法连接到端口 7055 上的二进制 FirefoxBinary;那么构建将永远挂在那里。
我使用 gradle 运行 geb/webdriver 测试,gradle 构建似乎启动并运行直到测试步骤。
我看到了这个帖子 http://groups.google.com/group/webdriver/browse_thread /thread/3d0bbb40cce5dfac 但这似乎无法解决我的问题。
知道如何解决这个问题吗?现在我必须站起来并停止失败的构建 每天早上..
提前非常感谢。
系统信息:os.name:'Windows 2003',os.arch:'amd64',os.version:'5.2',java.version:'1.5.0_18'驱动程序信息:driver.version:FirefoxDriver
My functional test running on hudson every 5 mins. It's working fine except almost(not always) every morning around 6:00 clock(I checked system logs, there is no big jobs eating up system resources at that time), I get java.lang.ExceptionInInitializerError caused by org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary on port 7055; then the build will hang there forever.
I use gradle to run the geb/webdriver tests, the gradle build seems to start and run until the test step.
I saw this thread http://groups.google.com/group/webdriver/browse_thread/thread/3d0bbb40cce5dfac but that seem can not solve my problem.
Any idea how to fix this? Now I have to get up and stop the failure build
every morning..
Thanks a lot in advance.
System info: os.name: 'Windows 2003', os.arch: 'amd64', os.version: '5.2', java.version: '1.5.0_18' Driver info: driver.version: FirefoxDriver
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您引用的线程的网址似乎有错误。
我时常遇到 gradle 挂起的问题。这些情况似乎是由于用户主目录中的 .gradle 目录中未释放的锁定造成的。删除 .gradle 目录为我解决了这个问题。
The url to thread you refer to seems to be faulty.
I have been having troubles with gradle hanging now and again. Those cases seem to have been due to an unreleased lock in the .gradle directory in the user home directory. Removing the .gradle directory fixed it for me.