错误缘由:使用plugin [public robot framework test results] 生成的HTML文件都无法正常打开.
![](https://images2018.cnblogs.com/blog/574303/201804/574303-20180411103511011-807074340.png)
![](file:///C:/Users/haili/AppData/Local/Temp/enhtmlclip/Image.png)
解决方案:
- Connect on your jenkins url (http://[IP]:8080/)
- Click on administer Jenkins
- Click on consol jenkins
- Copy this into the field and execute :
input the code below:
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP","sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ;")
![](file:///C:/Users/haili/AppData/Local/Temp/enhtmlclip/Image(5).png)
![](https://images2018.cnblogs.com/blog/574303/201804/574303-20180411103657704-570115509.png)
Success view html file:
![](file:///C:/Users/haili/AppData/Local/Temp/enhtmlclip/Image(6).png)
![](https://images2018.cnblogs.com/blog/574303/201804/574303-20180411103711502-5650895.png)
参考: