"The constructor ExtentReports(String, boolean) is undefined"

Viewed 191

I am getting "The constructor ExtentReports(String, boolean) is undefined" message while creating object of extentreport class.

public  ExtentReports reports;
public ExtentTest test;

@BeforeTest
public void setExtend() {
        reports = new ExtentReports(System.getProperty("user.dir")+"/test-output/reports.html",true);   
}
2 Answers

Update the Extent Report latest version. And please read the documentation care fully they explained very good way. Go through the documentation https://www.extentreports.com/docs/javadoc/com/aventstack/extentreports/ExtentReports.html

Related