'Can't start multiple drivers in multiple threads
Steps To Reproduce
- Login to Baidu
- Search something
- Set thread-count = 5 Expected behavior Each thread should initial one driver. For example, i have 3 cases, should start 3 drivers.
Actual behavior All the thread use the same one driver (it means only start 1 driver). For this, if the case has many steps, it seems not support multiple threads due to the only one drier.
Solution 1:[1]
This is possible duplicate of how-to-run-test-cases-in-parallel and qaf-weird-behavior-for-parallel-testing
For data driven tests, set global.datadriven.parallel=true and set thread count in xml configuration file using data-provider-thread-count
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | user861594 |
