我刚刚开始向我的配置文件添加并行测试,但遇到了一个问题,我无法在其他地方辨别 Protractor 是否可能。我的多功能设置目前如下所示:
multiCapabilities:[{
browserName: 'chrome',
name: 'chrome-tests',
count: 1,
shardTestFiles: true,
maxInstances: 1,
suites: {
repeatable: 'example/example.spec.js'
}
}, {
browserName: 'firefox',
name: 'ff-tests',
count: 1,
shardTestFiles: true,
maxInstances: 1,
suites: {
repeatable: 'example/example.spec.js'
}
}],
它失败并显示错误消息:
Cannot read property 'repeatable' of undefined
我是否遗漏了某些内容,或者 multiCapability 不支持并行运行的套件?
最佳答案
suites
只能在配置的上层定义。它们不能是特定于功能的。
关于angularjs - Protractor multiCapability 不支持套件配置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36015797/