小编no1*_*ite的帖子

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

出于某种原因,我正在间歇性地运行(或至少报告运行)我的茉莉花测试失败.错误在于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%的时间.

提前致谢.

continuous-integration jasmine phantomjs teamcity-8.0

5
推荐指数
1
解决办法
1628
查看次数