Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

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

Open
realfaisalk opened this issue May 15, 2018 · 2 comments

Comments

@realfaisalk
Copy link

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
Copy link

sivadeepti commented Jun 14, 2018

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
Copy link

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

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

No branches or pull requests

3 participants