0

I want to run my tests in parallel so it could save time, i did find an option in serenity where we can run the tests in batch but not parallel, also cucumber-parallel seems to be promising, the below link is for maven project, Running Serenity -Cucumber Test cases in parallel Any suggestion for Serenity/JS with npm?

1 Answers1

0

When Serenity/JS works with Protractor, it's Protractor that you'll need to configure to run your tests in parallel.

To do that, add the shardTestFiles and maxInstances properties to the capabilities (or multiCapabilities, if you're using different types of browsers) section of your protractor.conf.js files:

exports.config = {

    capabilities: {

        // execute tests using 2 browsers running in parallel
        shardTestFiles: true,
        maxInstances: 2

        // ... other config
    },

};

Here's an example config file you might find useful.

If this answer helps, please mark it as accepted, thank you!

Community
  • 1
  • 1
Jan Molak
  • 4,426
  • 2
  • 36
  • 32