← 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()?
- A.The test fails immediately
- B.Failed soft assertions are never reported
- C.TestNG throws a compile error
- 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 →