Skip to content

Data Provider Threads configuration in the suite don't match the documentation #2980

@bennid

Description

@bennid

TestNG Version

7.8.0

Expected behavior

Data providers can run in parallel with the attribute parallel:
@dataProvider(parallel = true)
// ...
Parallel data providers running from an XML file share the same pool of threads, which has a size of 10 by default. You can modify this value in the tag of your XML file:

...

Actual behavior

TestNG seems to startup "tests" that startup the dataprovider threads, and the data provider thread count is spun up per test. So if there are 4 data-provider tests each with 10 instances, if you set the data-provider-thread-count to 10, instead of only 10 data-provider tests running in parallel, the 4 "original tests" will spin up 10 data-providers each. Setting the thread-count is how many "tests" startup the data-provider threads.

https://github.com/bennid/testng-data-provider-threads

Is the issue reproducible on runner?

  • Shell
  • Maven
  • Gradle
  • Ant
  • Eclipse
  • IntelliJ
  • NetBeans

Test case sample

https://github.com/bennid/testng-data-provider-threads

Contribution guidelines

Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions