🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: TestNG: all 10 questions

Quiz: TestNG · Question 10 of 10

What does <suite parallel="methods" thread-count="4" do in testng.xml?

What does <suite parallel="methods" thread-count="4"> do in testng.xml?

  1. A.Runs every test four times
  2. B.Runs up to four test methods at the same time
  3. C.Limits the suite to four tests
  4. D.Runs tests in four browsers one after another
Answer & explanation

Correct answer: Runs up to four test methods at the same time

Parallel runs need tests that do not share state, such as one driver per thread.

Can you get the rest right without peeking?

Take the timed Quiz: TestNG quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →