Protractor - run multiple tests in parallel on different browsers

前端 未结 6 1076
再見小時候
再見小時候 2020-12-05 09:47

I can\'t find any information on how to set this up, but it seems like a pretty basic concept, so I\'m sure there\'s an answer out there.

I know how to run protrac

6条回答
  •  情书的邮戳
    2020-12-05 10:14

    using multiCapabilities will run all the tests in each of the browsers. So the configuration below will run every test twice, once in Firefox and once in Chrome:

    multiCapabilities: [{
      'browserName': 'chrome'
    }, {
      'browserName': 'firefox'
    }],
    

    If you would rather have each test file just run once, but split up among multiple browsers, then use the splitTestsBetweenCapabilities option:

    splitTestsBetweenCapabilities: true
    

    This blog post goes into further detail about the splitTestsBetweenCapabilities

提交回复
热议问题