anshooarora / extentreports-csharp

Community version of Extent API for .NET has moved to https://github.com/extent-framework/
http://extentreports.com/
Other
47 stars 43 forks source link

Configuration for Report Title and Name not being updated programatically #127

Open realfaisalk opened 6 years ago

realfaisalk commented 6 years ago

Hi,

I use htmlReporter.Configuration().DocumentTitle & htmlReporter.Configuration().ReportName in my code to set the report title and name at runtime. This was working in v3.02 but after upgrading to v3.1.3 these values are no longer being pulled from the code. The title & name is always displayed as "ExtentReports".

My code:

Extent = new ExtentReports();

            var filename = "C:\\myreport.html";

            // initialize the HtmlReporter
            var htmlReporter = new ExtentHtmlReporter(filename);
            htmlReporter.Configuration().DocumentTitle = "My Test Automation Report";
            htmlReporter.Configuration().ReportName = ReportTitle;

            Extent.AttachReporter(htmlReporter);
            htmlReporter.LoadConfig(@"Extent-Config.xml");
sivadeepti commented 6 years ago

Yes not working. Same bug for me as well. I had to downgrade Extent Reports version to get it working.

It stopped after 3.1.1 version. Not working in 3.1.2 and 3.1.3

GrantiVersace commented 6 years ago

Is there any update or remedy to this issue? @anshooarora