Search code examples
testngtestng-eclipse

TestNG - What is the default value of thread-count, if not specified in testng xml?


For below TestNG XML file, I am not specifying the thread-count explicitly. What is the default value of thread count for the below XML?

<suite name="TmpSuite" >
  <test name="TmpTest" parallel="methods">
    <classes>
      <class name="test.failures.Child"  />
    </classes>
    </test>
</suite>

Solution

  • By default, the value of the thread-count is 5.

    You can check it by entering the text thread-count corresponding to the suite attribute in the testng file and then you can hit Control + Space to get the auto-suggest for the thread-count and you would be able to see the default value for the thread-count.

    Please check the attached screenshot for your reference.

    Thread Count Default Value