Runner.concurrency Method
Use the concurrency
method to run multiple instances of the same browser simultaneously. Read the Concurrent Test Execution guide for more information.
Note
Concurrent test execution is not suitable for tests that can only run in a certain order. To override this setting for a particular fixture, use the disableConcurrency fixture method.
concurrency(n) → this
The concurrency
function takes the following parameters:
Parameter | Type | Description |
---|---|---|
n |
Number | The number of browser instances that are invoked. |
See Concurrent Test Execution to learn more about concurrent test execution.
Related configuration file property: concurrency
The following example shows how to run tests in three Chrome instances:
runner
.browsers('chrome')
.concurrency(3);