serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

Serenity reports are not displaying icons on jenkins setup on Ubuntu #66

Closed heerqa closed 8 years ago

heerqa commented 8 years ago
screen shot 2016-07-29 at 11 40 23 pm

The icons and pie chart is displaying correctly on laptop, but when running these test no ubuntu via jenkins the icons and pie chart is missing

wakaleo commented 8 years ago

As mentioned elsewhere, this is not a Serenity problem but rather a Jenkins configuration issue: see https://issues.jenkins-ci.org/browse/JENKINS-32026, https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy and https://wiki.jenkins-ci.org/display/JENKINS/HTML+Publisher+Plugin.

vikramvi commented 6 years ago

@wakaleo I follow below links to get this issue fixed but still can't see embedded images only in jenkis

  1. https://stackoverflow.com/questions/34740963/missing-pie-chart-and-other-elements-when-display-serenity-report-from-jenkins

  2. https://stackoverflow.com/questions/37618892/jenkins-content-security-policy

  3. https://janmolak.com/serenity-with-jenkins-2-0-7f4b8d48efe9

serenity_report_images_missing

I'm not understanding what else may be going wrong, can you please have a quick look ?

wakaleo commented 6 years ago

Looks like something odd with your Serenity report archiving in Jenkins. Could be related to the Jenkins issue mentioned above.

vikramvi commented 6 years ago

I could get it fixed by running below in Jenkins

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")

https://stackoverflow.com/questions/35783964/jenkins-html-publisher-plugin-no-css-is-displayed-when-report-is-viewed-in-j

Thanks for your time

@Others Refer to my detailed answer

https://stackoverflow.com/questions/34740963/missing-pie-chart-and-other-elements-when-display-serenity-report-from-jenkins/ ( author: vikramvi )