'Screenshot not showing in Report NG report

Screenshot not showing in Report NG report. Screenshot stored location: E:\Eclipse Java\SeleniumJava\DataDrivenFramework_Demo_1\html

and the Report NG code I have written

'''

System.setProperty("org.uncommons.reportng.escape-output","false");

Reporter.log("<a href="+ScreenshotUtil.fileName+" target="_blank">Screenshot link");

Reporter.log("
");

Reporter.log("<a href="+ScreenshotUtil.fileName+" target="_blank">");

'''



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source