toxicBurn
toxicBurn

Reputation: 127

how to run multiple spec files in parallel on the same chrome browser in protractor

I would like to run my specs across multiple instances of the same browser to cut down on time

   multiCapabilities: {
    browserName: 'chrome',
    maxInstances: 5,
    shardTestFiles: true,        
},

yet i still keep getting all files run one after another

Upvotes: 0

Views: 144

Answers (1)

yong
yong

Reputation: 13712

multiCapabilities should be an Array, you define it into an object.

multiCapabilities: [{
    browserName: 'chrome',
    maxInstances: 5,
    shardTestFiles: true,        
}],

Alternative to use single capabilities, which expect an object.

capabilities: {
    browserName: 'chrome',
    maxInstances: 5,
    shardTestFiles: true,        
},

Upvotes: 2

Related Questions