Opening Robot Framework log failed -- jenkins robotframework plug in

8,350 views
Skip to first unread message

nnc

unread,
Jan 5, 2016, 10:43:45 AM1/5/16
to robotframework-users

I have robot framework plugin installed on jenkins. my jenkins server is installed on ubutu.


When trying to open Robot Framework log.html (or report.html) I get an error in my browser:


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


my browsers versions are latest and should not have any problem and have javascript.enabled is true.


any help on how to resolve this problem will be great help.

sean.vanbas...@bax-shop.nl

unread,
Jan 5, 2016, 11:42:17 AM1/5/16
to robotframework-users
Hello, 

Have you tried opening the developer tools of your browser and looking at the Console when you have this issue? There's a good chance that you have one or more error messages there that will help you figure out what's wrong.

Pekka Klärck

unread,
Jan 8, 2016, 7:49:34 AM1/8/16
to chetty...@gmail.com, robotframework-users
2016-01-05 17:43 GMT+02:00 nnc <chetty...@gmail.com>:
> I have robot framework plugin installed on jenkins. my jenkins server is
> installed on ubutu.
>
> When trying to open Robot Framework log.html (or report.html) I get an error
> in my browser:
>
> "...
> 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.
> ..."

This is most likely caused by Jenkins v1.641 introducing stricter
security policy for HTML files. For more details and information how
to configure the policy see:

https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-12-09
https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy

I don't know could Robot's Jenkins plugin be enhanced to allow
configuring security policies automatically. Does someone have time
and interest to look at that?

Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.o

bks456

unread,
Jan 10, 2016, 8:04:08 PM1/10/16
to robotframework-users, chetty...@gmail.com

Does anyone has luck with this one ?

bks456

unread,
Jan 10, 2016, 8:46:12 PM1/10/16
to robotframework-users, chetty...@gmail.com

i am currently using Jenkins ver. 1.643 .  I tried work around of adding below highlighted to jenkins.xml suggested in the internet but didnt work for me. Could someone please suggest me on this error.



<executable>%BASE%\jre\bin\java</executable>
  <arguments>-Xrs -Xmx256m -Dhudson.model.DirectoryBrowserSupport.CSP= -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8080</arguments>


Errors:

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.

Heiko Thiery

unread,
Jan 11, 2016, 2:58:21 AM1/11/16
to techi...@gmail.com, robotframework-users, chetty...@gmail.com
As Pekka wrote you have to relax the default security policy rules: You have to modify the "hudson.model.DirectoryBrowserSupport.CSP" JAVA argument to your needs. In our configuration the value is added to "/etc/default/jenkins":

JAVA_ARGS="$JAVA_ARGS -Dhudson.model.DirectoryBrowserSupport.CSP= "


    BR,
    Heiko

    --
    You received this message because you are subscribed to the Google Groups "robotframework-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
    To post to this group, send email to robotframe...@googlegroups.com.
    Visit this group at https://groups.google.com/group/robotframework-users.
    For more options, visit https://groups.google.com/d/optout.

    gorants 456

    unread,
    Jan 11, 2016, 10:24:01 AM1/11/16
    to Heiko Thiery, robotframework-users, chetty...@gmail.com
    I am using windows based jenkins, please let me know if i am doing anything wrong here.


    I already have this entry in  jenkins.xml  but it is not working

    gorants 456

    unread,
    Jan 11, 2016, 12:23:18 PM1/11/16
    to Heiko Thiery, robotframework-users, Nalini Chetty

    In windows based Jenkins we have service for stop/start .

    I assumed below is the place where it is taking the arguments i have added those to Jenkins.xml.  here is complete xml.  please let me know if i am adding at wrong place.

    <service>
      <id>jenkins</id>
      <name>Jenkins</name>
      <description>This service runs Jenkins continuous integration system.</description>
      <env name="JENKINS_HOME" value="%BASE%"/>
      <!--
        if you'd like to run Jenkins with a specific version of Java, specify a full path to java.exe.
        The following value assumes that you have java in your PATH.
      -->
      <executable>%BASE%\jre\bin\java</executable>
      <arguments>-Xrs -Xmx256m -Dhudson.model.DirectoryBrowserSupport.CSP= -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8080</arguments>
      <!--
        interactive flag causes the empty black Java window to be displayed.
        I'm still debugging this.
      <interactive />
      -->
      <logmode>rotate</logmode>

      <onfailure action="restart" />
    </service>

    nnc

    unread,
    Jan 12, 2016, 5:08:23 AM1/12/16
    to robotframework-users, techi...@gmail.com, chetty...@gmail.com
    Below solution resolve the problem. Thankyou.

    To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

    dharmi patel

    unread,
    Apr 14, 2016, 1:59:31 AM4/14/16
    to robotframework-users, heiko....@gmail.com, chetty...@gmail.com
    what is the location of jenkins.xml in ubuntu?
    To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

    Lokesh B A

    unread,
    Dec 12, 2018, 1:35:11 AM12/12/18
    to robotframework-users
    Disable CSP policy in firefox:
    type: about:config ( in address bar )
    search for "Content.security.policy", and make it false.

    Amol Thakurdware

    unread,
    Jun 13, 2022, 8:00:59 AM6/13/22
    to robotframework-users
    Follow the steps in this video: https://youtu.be/Cw3RMYGOldA
    Reply all
    Reply to author
    Forward
    0 new messages