美文网首页测试Inbox
非IE浏览器打开原生脚本失败

非IE浏览器打开原生脚本失败

作者: 五娃儿 | 来源:发表于2017-03-20 18:31 被阅读13次

    问题: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' ;")

    相关文章

      网友评论

        本文标题:非IE浏览器打开原生脚本失败

        本文链接:https://www.haomeiwen.com/subject/frjinttx.html