有时,量角器测试无法在PhantomJS2中加载应用程序

时间:2015-10-20 13:51:26

标签: phantomjs protractor

有时在运行一堆规范文件时,在protractor-conf文件中使用下面提到的功能

  • shardTestFiles
  • maxInstances:4

    我发现有一项测试有时因

  • 而失败
  

[错误 - 2015-10-20T11:54:07.442Z]会话[443db8f0-7721-11e5-947b-7bec43428a2a] - page.onError - msg:TypeError:undefined不是对象(评估'angular.isDefined' )

     

[错误 - 2015-10-20T11:54:07.444Z]会话[443db8f0-7721-11e5-947b-7bec43428a2a] - page.onError - stack:     (匿名函数)(http://localhost:3000/vendor/angular-ui-router/release/angular-ui-router.js:18

     

[错误 - 2015-10-20T11:54:07.446Z]会话[443db8f0-7721-11e5-947b-7bec43428a2a] - page.onError - msg:TypeError:undefined不是对象(评估'angular。$$ minErr')

     

[错误 - 2015-10-20T11:54:07.447Z]会话[443db8f0-7721-11e5-947b-7bec43428a2a] - page.onError - stack:     (匿名函数)(http://localhost:3000/vendor/angular-resource/angular-resource.js:8

有没有人使用PhantomJS2遇到过这种/类似的行为?

我知道Phantomjs2目前不支持所有平台,但是我使用的是据说Ubuntu 14.04支持的平台

0 个答案:

没有答案
相关问题