Skip to content

Breaking Changes

Anshoo Arora edited this page Aug 13, 2020 · 5 revisions

If you are upgrading from version 4, the upgrade path is quite straight-forward. The ExtentHtmlReporter and ExtentLoggerReporter outputs have been removed and replaced by ExtentSparkReporter (since 4.1.5). To keep the API usage inline with the major Java test-frameworks (JUnit and TestNG), a few changes to the Status enumeration have also been implemented.

The complete list of changes are below:

ExtentHtmlReporter, ExtentLoggerReporter

The ExtentHtmlReporter and ExtentLoggerReporter were deprecated in series 4.1.x and have been removed in version 5. The replacement is ExtentSparkReporter, which is comprehensive, ports all features along with a host of new ones.

ExtentReports::getStartedReporters

ExtentReports::getStartedReporters has been removed. It is no longer possible to obtain a list of started reporters via the API.

ExtentReports::detachReporter

ExtentReports::detachReporter has been removed. It is no longer possible to detach observers once they have been subscribed.

ExtentReports:setTestRunnerOutput

ExtentReports:setTestRunnerOutput renamed to addTestRunnerOutput. This change was made to add clarity to what this method did behind the scenes, which is adding output from test runners instead of setting it only once.

Changes to the Status enumeration

Status::ERROR, Status::FATAL, Status::DEBUG have been removed to be inline with the major Java test-frameworks (JUnit and TestNG). The following are the current options:

  • Info
  • Pass
  • Warning
  • Skip
  • Fail

Reporter::enableTimeline

Reporter::enableTimeline renamed to Reporter::setTimelineEnabled.

Clone this wiki locally