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

BUG: Naming of output file doesnt work with "ExtentHtmlReporter" but works with "ExtentV3HtmlReporter"

Open xBeardy opened this issue 4 years ago • 0 comments

Hello,

so since weeks me and others here have the issue, that we cant change the name of the output file.

There is one way, to make it work, but its "obsolete".

So if i use ExtentV3HtmlReporter like in the example below, it works. The output file has its correct name: var htmlreporter = new ExtentV3HtmlReporter(ExtentReportPath + "TAC_TEST_" + DateTime.Now.ToString("MMM-dd-yyyy hh-mm-ss") + ".html");

But Visual Studio gives a warning, that this method is outdated.

The newer one is ExtentHtmlReporter without the V3, if i use this newer one, then the output files name is ALWAYS index.html. Like in this example: var htmlreporter = new ExtentHtmlReporter(ExtentReportPath + "TAC_TEST_" + DateTime.Now.ToString("MMM-dd-yyyy hh-mm-ss") + ".html");

xBeardy avatar Oct 13 '21 11:10 xBeardy