我的角度應用程序中使用量角器黃瓜框架試圖並行執行,我試圖與2種類型的能力,但我只能夠一次執行功能的文件JSON報告,下面是這2種類型的,我已經使用的能力。並行執行
capabilities: { browserName: 'chrome', shardTestFiles: 'true', maxInstances: 3, },
multiCapabilities: [ { shardTestFiles: true, browserName:'chrome', }, { shardTestFiles: true, browserName: 'internet explorer', } ]
我的黃瓜選擇採用這個樣子:
cucumberOpts: {
require:[ 'Generic_Protractor/StepDefinitions//*.js',
'Generic_Protractor/Support//*.js' ],
format: [ 'json:Generic_Protractor/Report/cucumber_report.json', 'pretty' ],
plugin : "pretty",
keepAlive: false
}
請幫我拿到完整的JSON報告。
在此先感謝
也許這將幫助你 - http://stackoverflow.com/questions/39499847/how-to-make-sharded-protractor-tests-report-after-all-tests-finish-instead-of-p – Grasshopper