extent-framework / extentreports-csharp

Extent Reporting Library, .NET
http://extentreports.com
Apache License 2.0
49 stars 40 forks source link

LoadXMLConfig Serialization issue. #188

Closed sudheshg closed 8 months ago

sudheshg commented 9 months ago

Getting serialization error while passing the config xml files given as per the latest documentation.

Steps to Reproduce:

var spark = new ExtentSparkReporter("Spark.html"); spark.LoadXMLConfig("spark-config.xml");

issue#1:

System.InvalidOperationException: 'There is an error in XML document (2, 2).' InnerException: InvalidOperationException: was not expected.

issue#2:

Theme style Enumeration values are not serializing it.

InvalidOperationException: Instance validation error: 'STANDARD' is not a valid value for Theme.

Framework : Dotnet 6.0 OS: Windows 10

sudheshg commented 9 months ago

PR link #189

AbdulSDET commented 9 months ago

@sudheshg Any tentative date for this Issue fix ?

sudheshg commented 9 months ago

@sudheshg Any tentative date for this Issue fix ?

I'm not sure I raised this bug and am waiting for the PR to be accepted. As an alternative, you can use the SparkJson config instead of the XML one.

anshooarora commented 9 months ago

PR merged. This change will be included in the next release (5.0.1).

sudheshg commented 9 months ago

@anshooarora Thanks much.

emerson-b commented 8 months ago

This seems to have resolved the issue, but the xml/json flag for "thumbnailForBase64": true, doesnt seem to actually show a thumbnail for the base64 image, instead still using the default "base64 img" placeholder. I'm I missing anything with this added config?

anshooarora commented 8 months ago

@emerson-b It doesn't look like this is related this bug. Can you open a new issue with these details? This feature hasn't been implemented yet.