Skip to content
CodeKruPro

How retried attempts appear in TestNG results

QuizMedium-HardJava onlyAsked in: Accenture, Capgemini, Infosys

A retry analyzer allows two retries. A test fails, fails again, then passes. How does TestNG 7 report it?

  • The first two attempts are reported as skipped (marked as retried) and the last as passed
  • Two failures and one pass, so the suite fails
  • Only one pass, with no trace of the retries
  • The test is reported as failed because it failed first

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in