Jenkins 执行Robot Framework 测试报告打不开解决方法
现象:
Jenkins执行完成后的robot framework 报告,日志打不开,提示如下:
Opening Robot Framework log 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.
解决办法:
1. 如果你是用命令行开启的
关闭Jenkins,修改开启命令如下,重新开启
java -Dhudson.model.DirectoryBrowserSupport.CSP= -jar %JENKINS_HOME%\jenkins.war --httpPort=9191
2. 如果你是用msi安装的
找到jenkins.xml 文件,修改如下
![](https://static.oschina.net/uploads/space/2017/0714/150103_czpR_3066331.png)
3. 如果你是用tomcat 启动的
有个临时的解决方法
3.1 打开jenkins 首页
3.2 进入系统管理
3.3 进入脚本命令行
在输入框输入如下代码,并执行
![](https://static.oschina.net/uploads/space/2017/0714/150127_VyBl_3066331.png)
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")