🎙 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 3 of 10

What happens if you forget soft.assertAll()?

What happens if you forget soft.assertAll()?

  1. A.The test fails immediately
  2. B.Failed soft assertions are never reported
  3. C.TestNG throws a compile error
  4. D.Only the first assertion runs
Answer & explanation

Correct answer: Failed soft assertions are never reported

assertAll() is what reports the collected failures.

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 →