extent-framework / extentreports-csharp

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

End time on generated reports is not being set correctly #138

Closed anaskhan5023 closed 3 years ago

anaskhan5023 commented 3 years ago

I am seeing this issue on 5.0 alpha 6

I am parsing an XML and Json test report and generating an Extent Report. I parse the start and end time of complete run and use them to set the start and end time of Extent Report explicitly.

In the Extent report, the start time is displayed correctly but the end time is being set to the time the report is generated(not the end time explicitly set). This gives each test a massively inflated incorrect execution time.

I can guarantee the start and end time are in the same format and being parsed correctly.

image

anaskhan5023 commented 3 years ago

Working fine after setting useNaturalTime = false;