Bird
0
0

Which XML attribute correctly sets the number of threads for parallel execution in TestNG?

easy📝 Syntax Q12 of 15
Selenium Java - TestNG Integration
Which XML attribute correctly sets the number of threads for parallel execution in TestNG?
A<code>thread-count</code>
B<code>parallel-count</code>
C<code>max-threads</code>
D<code>execution-threads</code>
Step-by-Step Solution
Solution:
  1. Step 1: Recall TestNG XML attributes for parallelism

    TestNG uses thread-count to specify how many threads run tests in parallel.
  2. Step 2: Verify other options are incorrect

    Attributes like parallel-count, max-threads, and execution-threads are not valid TestNG attributes.
  3. Final Answer:

    thread-count -> Option A
  4. Quick Check:

    Thread count = number of parallel threads [OK]
Quick Trick: Use thread-count to set parallel threads in TestNG XML [OK]
Common Mistakes:
MISTAKES
  • Using wrong attribute names like parallel-count
  • Confusing thread-count with parallel attribute
  • Misspelling thread-count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Selenium Java Quizzes