TypeError:null不是对象(评估'document.body.querySelector('.alert> .bar.passed').innerText')

no1*_*ite 5 continuous-integration jasmine phantomjs teamcity-8.0

出于某种原因,我正在间歇性地运行(或至少报告运行)我的茉莉花测试失败.错误在于run-jasmine.js,错误表现为

`TypeError: null is not an object (evaluating 'document.body.querySelector('.alert > .bar.passed').innerText')
phantomjs://webpage.evaluate():58
phantomjs://webpage.evaluate():61` 
Run Code Online (Sandbox Code Playgroud)

我正在运行TeamCity 8.1.3(build 30101),Jasmine 2.2.0和phantomjs 2.0.0.构建步骤命令参数是

--web-security=no
--local-to-remote-url-access=yes
--ignore-ssl-errors=yes
jasmine/run-jasmine.js
specs/SpecsRunner.html
Run Code Online (Sandbox Code Playgroud)

我试过降级Jasmine和phantomjs,但没有改变.我也试过各种run-jasmine.js脚本,但无济于事.还有其他人有类似的问题吗?

一切都很好,直到几天前,现在它发生在90%的时间.

提前致谢.

no1*_*ite 1

我发现了一个新的 run-jasmine.js 脚本可以完成这项工作。

丹尼尔-钱伯斯 / run-jasmine.js

我之前尝试过这个脚本,但遇到超时问题,所以我继续前进,但现在我已将脚本中的“默认最大超时”增加到 60 秒,看起来效果很好。