Error: Opening Robot Framework log failed

dharpatel picture dharpatel · Apr 13, 2016 · Viewed 28.9k times · Source

If I open any .html file that generated by Robot Framework and try to convert it in any other format(for example, docx formate) using either any python code or inbuilt command line tool that are available. I am getting below error,

  1. 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.

· I am getting this error even though I have already enabled JavaScript in my browser.I am using Mozilla Firefox version 45.0.2 on mac.

Can anyone please help me to solve this issue?

Answer

Toral picture Toral · May 30, 2016

Answer is explained at Jenkins issue tracking system: https://issues.jenkins-ci.org/browse/JENKINS-32118

For resolve your problem you must :

  1. Connect on your jenkins url (http://[IP]:8080/)
  2. Click on Manage Jenkins from left side panel.
  3. Click on Script Console
  4. Copy this into the field

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

  5. Click on Run button.

  6. Execute your Jenkins build.