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

ExtentXReport always with Default name and Default Project #37

Closed sisillV closed 7 years ago

sisillV commented 7 years ago

Hi, I try to add Project and Report name using: var extentxReporter = new ExtentXReporter(); extentxReporter.Configuration().ReportName = "Build123"; extentxReporter.Configuration().ProjectName = "MyProject"; extentxReporter.Configuration().ServerURL = "http://localhost:1337/";

var extent = new ExtentReports(); extent.AttachReporter(htmlReporter, extentxReporter);

Like it is shown in the readme file. What I must do to really record this new values? After I attach the extentXReport in extent object: 15-3-2017- 15-06-10

At the same time when I check ExtentXReport.Configuration() I see the values that I put: 15-3-2017- 15-08-10

anshooarora commented 7 years ago

Are these values not shown correctly in ExtentX? I am sorry I don't think I completely understand your question.

sisillV commented 7 years ago

Hi Anshooarora, Yes in ExtentX I see only Default poject and default Report name if I use:

var extentxReporter = new ExtentXReporter(); extentxReporter.Configuration().ReportName = "Build123"; extentxReporter.Configuration().ProjectName = "MyProject"; extentxReporter.Configuration().ServerURL = "http://localhost:1337/";

var extent = new ExtentReports(); extent.AttachReporter(htmlReporter, extentxReporter);

This is the problem.