当我尝试使用PhantomJS运行JSCover时,我看到下面的错误:
遵循的步骤:
1)运行JSCover服务器:
java -jar ~/JSCover/target/dist/JSCover-all.jar -ws --report-dir=report
2)使用JSCover运行PhantomJS runner:
*phantomjs --debug=true ~/JSCover/src/test/javascript/lib/PhantomJS/run-jscover-jasmine.js
localhost8080/<app>/module/framework/test/SpecRunner.html
TypeError: 'null' is not an object(evaluating''document.body.querySelector(".描述 ').的innerText')`
phantomjs://webpage.evaluate():3
phantomjs://webpage.evaluate():22
phantomjs://webpage.evaluate():22
2013-09-19T16:36:07 [DEBUG] WebPage - evaluateJavaScript result QVariant(, )
2013-09-19T16:36:07 [DEBUG] WebPage - evaluateJavaScript"(function(){return(function(){jscoverage_report('phantom');})();})()"2013-09-19T16: 36:07 [DEBUG] WebPage - evaluateJavaScript结果QVariant(,)2013-09-19T16:36:07 [DEBUG]网络 - 资源请求错误:5("取消操作")URL: localhost8080/<app_home>/lib/backbone/1.0.0/backbone.js?cb=0.5381254460662603