Closed bly1201 closed 4 years ago
@dod0o This is the expected behavior with the version4 HtmlReporter. It creates upto 4 files depending upon the attributes that are created. This is also true for all new version4 reporters, to maximize performance and obviously to keep each file focused on its specific tasks.
If you would like the old behavior, use the version3 port of HtmlReporter:
var v3html = new ExtentV3HtmlReporter()
You can use the single and free-named old system with Version 4 HtmlReporter like this : reporter = new ExtentHtmlReporter(path,ViewStyle.SPA);
Note that ViewStyle is a new feature of V4 reporter. No need to switch to the old V3 library like @bly1201 said.
Hello All, Please help!! I try to use the ExtentHtmlReporter to create a costume report name like "MyReport.html" but it generate an "index.html" file instead. By the way I'm using ExtentReports 4.1.0. and C# in VS 2019. Here is my code
Thanks for your help.