Repeating “Asynchronous Sessions cleanup phase starting NOW”

前端 未结 3 523
余生分开走
余生分开走 2020-12-07 02:37

When I run my test suit, I find that intermittently some of the texts will hang for a very long time (15 mins to half an hour) with PhantomJS constantly reporting:<

相关标签:
3条回答
  • 2020-12-07 02:59

    Solution found:

    The Asynchronous Sessions cleanup phase starting NOW ... was caused by some calls to external feeds, these were intermittently slow. This phase must have been waiting for these calls, which were timing out, but PhantomJS sat there waiting for a very, very long time.

    Removing these calls when testing (with a wee bit of JavaScript, if host is localhost then use a dummy object) solved the problem.

    0 讨论(0)
  • 2020-12-07 02:59

    try to use this.driver = new PhantomJSDriver(caps); Now, we get a shutdown. [INFO - 2014-05-01T13:21:09.095Z] ShutdownReqHand - _handle - About to shutdown

    But After I got the same pbm

    0 讨论(0)
  • 2020-12-07 03:04

    The workaround that worked for me is to set the takesScreenshot capability to false.

    DesiredCapabilities caps = new DesiredCapabilities();
    caps.setCapability("takesScreenshot", false);
    
    0 讨论(0)
提交回复
热议问题