1

I have used DataProviders in my tests. I want to execute them in parallel[@DataProvider(parallel = true)].

When I give parallel = methods, data-provider-thread-count = 1 , thread-count =2.

Total no of thread i want to execute at a given time is 2. I want the DataProviders to pick up the next input whenever there is an idle thread. Currently the DataProvider is using the same thread(for one input after another) for execution which is more like sequential.

If I give data-provider-thread-count = 2 & thread-count =2, 2X2=4 threads are running in Parallel. This will increase the load when there are 100 DataProvider tests.

Is there a way to control the DP threads from spawning separate thread pool? So we can enable them to be picked up for parallel execution.

rishiehari
  • 384
  • 5
  • 13
Gayathri P
  • 11
  • 2

0 Answers0