1

Steps To Reproduce

  1. Login to Baidu
  2. Search something
  3. 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.

scenario image

testNG file image

test data image

java script image

yan
  • 11
  • 3

2 Answers2

0

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

user861594
  • 5,733
  • 3
  • 29
  • 45
  • But three drivers are started one by one, not at the same time. Do you know how to resolve it? It not supports multiple threads now. – yan May 10 '22 at 01:55
  • try using `parallel=methods` in testNG configuration file – user861594 Jun 01 '22 at 18:05
0

I have configured as you mentioned, but it will only run one case and ignore others. But if I set global.datadriven.parallel=false, it will run correctly. enter image description here

enter image description here

enter image description here enter image description here

yan
  • 11
  • 3