extentreports-csharp icon indicating copy to clipboard operation
extentreports-csharp copied to clipboard

Change index.html name and add timestamp in file name

Open mwahab25 opened this issue 3 years ago • 1 comments

Is there a way to add time stamp in index file ? like index_9_13_20_7_7_2021

mwahab25 avatar Jul 07 '21 18:07 mwahab25

This is a bug currently in the newest version of extent reports..

If you use ExtentV3HtmlReporter then it works, like in this example: var htmlreporter = new ExtentV3HtmlReporter(ExtentReportPath + "Data" + DateTime.Now.ToString("MMM-dd-yyyy hh-mm-ss") + ".html");

But Visual Studio will give you a warning that ExtentV3HtmlReporter is outdated.

The newest one is called ExtentHtmlReporter without the V3. But with this one, the output files name is always "index.html"

xBeardy avatar Oct 13 '21 11:10 xBeardy