extent-framework / extentreports-csharp

Extent Reporting Library, .NET
http://extentreports.com
Apache License 2.0
50 stars 39 forks source link

Change index.html name and add timestamp in file name #134

Open mwahab25 opened 3 years ago

mwahab25 commented 3 years ago

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

xBeardy commented 3 years ago

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"