测试在shardTestFiles设置为true时间歇性地失败

时间:2017-03-29 00:00:12

标签: angularjs selenium-webdriver protractor

我的测试在没有shardTestFiles的情况下可靠传递,但是如果使用shardTestFiles,我会在不同的地方断断续续。错误消息如下:

失败:等待量角器与页面同步时出错:"无法读取属性' $$可测试性'未定义"

这是我的配置文件:



exports.config = {
  seleniumAddress: 'http://localhost:4444/wd/hub',
  specs            : ['tests/e2e/**/*.js'],
  rootElement: 'body#rootElement',

  capabilities: {
    browserName: 'chrome',
    shardTestFiles: true,
    maxInstances:11
  },

  allScriptsTimeout: 500000,
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 500000,
    isVerbose: true
  }
};




如何使用shardTestFiles可靠地运行测试?

0 个答案:

没有答案
相关问题