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

Screenshots added does not appear in HTML reports - v 3.0.2 with C# #98

Closed chakraborty-rupam closed 6 years ago

chakraborty-rupam commented 6 years ago

Hi, I'm trying to use relative path to attach screenshots in html report, after running my tests the html report is generated but screenshot attached does not appear. Below is the html source and a snapshot of what comes up on the html ui.

image

chakraborty-rupam commented 6 years ago

Below's the HTML source snippet - the src field is empty, hope that's not the issue. img data-featherlight='./Screenshots/Successful_Login##_I_see_theSelect_Organization_GroupLink_on_the_Landing_Page##_20180109_154406.png' width='10%' src='' data-src='./Screenshots/Successful_Login##_I_see_theSelect_Organization_GroupLink_on_the_Landing_Page##_20180109_154406.png'>

chakraborty-rupam commented 6 years ago

Okay I got the issue here, its the way I'm naming the .png files (with # and _) which caused the issue. Simplification of the screenshot name did the trick, it works.