问题:RobotFramework原生的report.html和log.html在非IE浏览器中打开时,会出现打开失败的情况,报错如下:
Opening Robot Framework report failed
Verify that you have JavaScript enabled in your browser.
Make sure you are using a modern enough browser. Firefox 3.5, IE 8, or equivalent is required, newer browsers are recommended.
Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug.
登录jenkins,在系统管理(administer Jenkin)->脚本命令行(Consol Jenkins),运行(Execute):
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' ;")
网友评论