← 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?
- A.Runs every test four times
- B.Runs up to four test methods at the same time
- C.Limits the suite to four tests
- 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 →