protractor icon indicating copy to clipboard operation
protractor copied to clipboard

multi capabilities not firing multiple instances of browser to run tests in parallel

Open tommyz0123 opened this issue 10 years ago • 1 comments

I want to run my tests in parallel using multiple instances of same browsers. I have this setup, but it doesn't start multiple browsers.

multiCapabilities: [ { browserName: 'chrome', sharedTestFiles: true, maxInstances: 2, count: 1, } ], suites: { samples: ['test1.spec.js','test2.spec.js'] },

With the above setup, I'm expecting protractor to start 2 instances of Chrome, one for each spec in my samples suite. It will run them once only. What ends up happening is that only 1 instance of webdriver is started.

NOTE: If I change count=2, it starts 2 instances of chrome. But, both run the same tests. So, it's repeating them instead of splitting them.

Protractor Version 3.2.2

tommyz0123 avatar May 26 '16 03:05 tommyz0123

just noticed it is 'shardTestFiles', not 'SharedTestFiles'. Changed it and it's working. closing.

tommyz0123 avatar May 26 '16 07:05 tommyz0123