Skip to content

Updating from 3.X to 4.X breaks #111

@SElab2019

Description

@SElab2019

When I try to upgrade ExtentReports from 3.X to version 4.X. The following code breaks.

private static ExtentReports createInstance() {
	ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(htmlReportPath+htmlFileName);
	htmlReporter.loadXMLConfig(new File(extentConfigFilePath));
	extent = new ExtentReports();
	extent.attachReporter(htmlReporter); 
	return extent;
}

The code should pass, but it throws an error:

Demo.java:[4,44] incompatible types: java.io.File cannot be converted to java.lang.String

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions