【问题标题】:Selenium RC is unexpectedly shutting down exactly after 10 minutesSelenium RC 在 10 分钟后意外关闭
【发布时间】:2012-12-19 04:22:42
【问题描述】:

知道这里发生了什么吗?我以前从未遇到过这个问题,突然间我不得不为运行超过 10 分钟的测试用例编写自动化代码。我发现服务器在 10 分钟后意外关闭。

它在关闭时会在我的日志文件中显示: 21:47:49,133 INFO GenericApplicationContext:1002 - 关闭 org.springframework.context.support.GenericApplicationContext@1ef8cf3:启动日期 [2012 年 12 月 18 日星期二 21:37:49 CST];上下文层次结构的根

我在我的设置中使用 RemoteControlConfiguration 和 SeleniumServer。

 org.openqa.selenium.server.SeleniumServer
 org.openqa.selenium.server.RemoteControlConfiguration

如果不到 10 分钟,所有测试用例都运行良好。我使用的是 2.25 版本。

WebDriver 可能会解决它,但由于其他一些内部问题,目前转向 WebDriver 是不可行的。所以我没有调查那个领域。

为了过度确认是否是超时问题,我还运行了这样的操作:

waitForPageToLoad(1000*60*11)

明确通过时间等待 11 分钟并在 10 分钟后关闭。

任何帮助将不胜感激。我正在通过 junit 运行我的 selenium 测试用例。

提前致谢。

【问题讨论】:

    标签: java selenium automation webdriver selenium-rc


    【解决方案1】:
    you can also run on different port with different test suites..
    hope it might help you
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-31
      • 2021-06-28
      • 1970-01-01
      • 2021-09-07
      • 1970-01-01
      • 1970-01-01
      • 2021-03-27
      • 2016-12-05
      相关资源
      最近更新 更多