Skip to content

Extent Reports v3.1.3 AppendExisting does not work #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sundusnisar opened this issue Jun 26, 2020 · 1 comment
Closed

Extent Reports v3.1.3 AppendExisting does not work #93

sundusnisar opened this issue Jun 26, 2020 · 1 comment

Comments

@sundusnisar
Copy link

sundusnisar commented Jun 26, 2020

I have a project with 30 tests. I run it and report is generated. If 1 test fails, I only run that failed test again. The new generated report contains only last failed test.
I want to have all 30 tests of first report, with only failed tests replaced with last run test.

Here is the code am using

var path = System.Reflection.Assembly.GetCallingAssembly().CodeBase;
var actualPath = path.Substring(0, path.LastIndexOf("bin"));
var projectPath = new Uri(actualPath).LocalPath;
var reportPath = projectPath + "Reports\ExtentReport.html";
ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter("ExtentReport.html");
htmlReporter.AppendExisting = true;
_extent = new ExtentReports();
_extent.AttachReporter(htmlReporter);

It makes no difference either I set true or false to htmlReporter.AppendExisting .
Any help is appreciated.

@anshooarora
Copy link
Member

This feature will be available starting version 5.0. Please track #97.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants