截图如下:
task : Codeception PHP Testing Framework v1.6.2
Powered by PHPUnit 3.7.19 by Sebastian Bergmann.
Suite selenium_acceptance started
Trying to see the welcome page of newweather (welcomeCept.php)
issue : it sits as it is and waiting for phantomJS to respond and below is what phantomJS screen is showing :
[INFO - 2014-03-13T01:42:51.575Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: ca14e740-aa50-11e3-bb6b-75468ba86108
[INFO - 2014-03-13T01:47:42.806Z] SessionManagerReqHand - _cleanupWindowlessSessions - Asynchronous Sessions clean-up phase starting NOW
[INFO - 2014-03-13T01:52:42.806Z] SessionManagerReqHand - _cleanupWindowlessSessions - Asynchronous Sessions clean-up phase starting NOW
[INFO - 2014-03-13T01:57:42.806Z] SessionManagerReqHand - _cleanupWindowlessSessions - Asynchronous Sessions clean-up phase starting NOW
它在屏幕上显示没有结果。
这是我使用的:
上运行
发布于 2015-04-28 08:12:23
我能找到的唯一半相关的答案是:
“现在开始的异步会话清理阶段...是由一些对外部源的调用引起的,这些调用间歇性地很慢。这个阶段肯定一直在等待这些调用,这些调用已经超时,但PhantomJS在那里等待了很长时间。”
在测试时删除这些调用(使用少量的JavaScript,如果主机是本地主机,则使用伪对象)解决了问题。“
点击此处:Repeating "Asynchronous Sessions cleanup phase starting NOW"
所以这个问题很可能是由外部提要/API调用超时引起的。
发布于 2016-01-24 04:27:02
对我有效的解决方法是将takesScreenshot功能设置为false。
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("takesScreenshot", false);
发布于 2017-09-10 16:22:29
一年前我也遇到过同样的问题。我发现了一个肮脏的黑客。我使用nginx的其他服务器,在那里我将所有查询代理到所需的测试构建。我将我的测试重定向到代理服务器,现在我没有这个错误。自2016年4月以来,测试每天都在工作,没有错误。
https://stackoverflow.com/questions/22368075
复制相似问题