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. This document details all the breaking changes on a version 4.0 to 5.0 upgrade path. If you encounter any change other than the ones listed here, please file an issue here.

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.