question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

multiCapabilities ignores spec

See original GitHub issue

Hi

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:closed
  • Created 10 years ago
  • Comments:29 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
hankduancommented, Jul 10, 2014

the capability-specific specs are in addition to the main config.specs

0reactions
PradeepHebbarcommented, Apr 13, 2017

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found