ReportNG report display Blank Gray Box

126 Views Asked by At

I have an Issue with ReportNG, It's working fine and generated 'index.html' under surefire-reports after every executions.

But when I tried to send that report as an email attachment, and open that attachment 'index.html' for view the report

Report displayed as Gray Empty Box attachedEmpty ReportNG report

2

There are 2 best solutions below

1
murali selenium On BEST ANSWER

Did you only sent index.html file in email? it need other supporting file right? All these files required to display correctly.

So better to have total output folder.. or need to find what are supporting files required for index.hml file and need attach all.

0
jchaturvedi On

I faced the same issue but when I executed the command below in the script console it worked. Please try:

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", " ")