Search code examples
seleniumselenium-webdrivertestngextentreportsselenium-extent-report

How to generate extent reports using spark (ExtentReports 5)?


Now Htmlreporter is deprecating. So need other than Htmlreporter solution. Please give me the proper and new solution.Am expecting with the spark report.


Solution

  • The usage remains same, albeit with the new default reporter.

    ExtentSparkReporter spark = new ExtentSparkReporter(new File(""));
    extent.attachReporter(spark);