multiCapabilities ignores spec
See original GitHub issueHi
I’d like to be able to use the multiCapabilities
feature like this:
multiCapabilities: [
{
browserName: 'chrome',
specs: ['path/to/test-1-suite.js']
},
{
browserName: 'chrome',
specs: ['path/to/test-2-suite.js']
}
],
However, Protractor ignores the specs
object in both cases, and bails out with an error that it couldn’t find the specs.
Would this be simple to implement?
many thanks
Matt
Issue Analytics
- State:
- Created 10 years ago
- Comments:29 (19 by maintainers)
Top Results From Across the Web
In protractor can I define the browser specially to the spec ...
I have 2 specs which need to be run in none parallel mode and 1 spec should run in chrome and other is...
Read more >Capabilities and Options in Protractor - Selenium Easy
But please note that if multiCapabilities is defined, the runner will ignore the capabilities configuration defined if any.
Read more >Setting Up the Browser - Protractor
Please note that if multiCapabilities is defined, the runner will ignore the capabilities configuration. Using Multiple Browsers in the Same Test. If you...
Read more >Protractor parallel execution - Perfecto Help
// tests, use multiCapabilities, which takes an array of capabilities. // If this is specified, capabilities will be ignored. multiCapabilities: [ { ' ......
Read more >CHANGELOG.md
This means that if multiCapabilities are being used or tests are sharded, `getProcessedConfig` will return an object with the `capabilities` and `specs` ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
the capability-specific specs are in addition to the main config.specs
@YukonSaint @hankduan I am trying parallel execution for angular application using protractor-cucumber-framework , i have tried with 2 types of capabilities but i am getting only last executed feature file json report , below are the 2 types of capabilities i have used. 1) capabilities: { browserName: ‘chrome’, shardTestFiles: ‘true’, maxInstances: 3, },
2) multiCapabilities: [ { shardTestFiles: true,
browserName:‘chrome’,
}, { shardTestFiles: true,
browserName: ‘internet explorer’, } ],
my cucumber opts look like this:
cucumberOpts: { require:[ ‘Generic_Protractor/StepDefinitions//*.js’, 'Generic_Protractor/Support//*.js’ ], format: [ ‘json:Generic_Protractor/Report/cucumber_report.json’, ‘pretty’ ], plugin : “pretty”, keepAlive: false
Please help me out to get complete json report.
Thanks in advance