Skip to content
CodeKruPro

Reporter.log in TestNG

QuizEasy-MediumJava onlyAsked in: Accenture, Capgemini, Infosys, TCS, Wipro

What does Reporter.log("Opened checkout page") do in a TestNG test?

  • It adds the message to TestNG's HTML report output for that test
  • It writes the message to a database
  • It fails the test with that message
  • It sends an e-mail

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