2017-04-18 50 views
0

我的角度应用程序中使用量角器黄瓜框架试图并行执行,我试图与2种类型的能力,但我只能够一次执行功能的文件JSON报告,下面是这2种类型的,我已经使用的能力。并行执行

  1. capabilities: { browserName: 'chrome', shardTestFiles: 'true', maxInstances: 3, },

  2. 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报告。

在此先感谢

+0

也许这将帮助你 - http://stackoverflow.com/questions/39499847/how-to-make-sharded-protractor-tests-report-after-all-tests-finish-instead-of-p – Grasshopper

回答