Serenity reports not showing tables, pie charts, logos, etc.

1,540 views
Skip to first unread message

Shubham Shukla

unread,
Sep 23, 2016, 7:25:50 AM9/23/16
to Serenity BDD Users Group
Hi,

I am using serenity over cucumber jvm, the problem i am facing is that i am not able to see any images in reports.
They are generated, with build success but they do not contain any images, logos, etc.
Index.html attached.

I am using dependencies as in the pom attached.
I see that the serenity-resources file in the target/site/serenity is 0 bytes.
Is that the reason for it to contain no resources.

What could be the possible solution for this.

Any help would be appreciated.

Regards,
Shubham


index.html
pom.xml
serenity.properties

John Smart

unread,
Sep 23, 2016, 7:29:56 AM9/23/16
to Shubham Shukla, Serenity BDD Users Group
Hi Shubham,

There seem to be a lot of dependency conflicts in the pom.xml file (e.g. Serenity uses JUnit 4.12, but you have both 4.11 and 4.10 in the dependencies). This could be causing problems with the report generation.


--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<index.html><pom.xml><serenity.properties>

Shubham Shukla

unread,
Sep 23, 2016, 8:51:55 AM9/23/16
to Serenity BDD Users Group, shubha...@gmail.com
Thanks John for the prompt reply.

I changed the pom to use junit version 4.12 , but the problem is still not solved.

Any thoughts?

Shubham Shukla

unread,
Sep 27, 2016, 5:10:33 AM9/27/16
to Serenity BDD Users Group, shubha...@gmail.com
BUMP!

Sanjay Sharma

unread,
May 24, 2017, 9:12:47 AM5/24/17
to Serenity BDD Users Group, shubha...@gmail.com

Santosh Chauhan

unread,
Sep 5, 2017, 2:22:34 AM9/5/17
to Serenity BDD Users Group, shubha...@gmail.com
Hi John,

I am using latest version of serenity 1.5.9, junit 4.12 cucumber 1.5.4. I am facing issue in report where look n feel is missing but only raw html data is displayed when index.html is opened.

Can you please suggest what could be the possible reason of it?

Thanks,
Santosh

John Smart

unread,
Sep 5, 2017, 2:26:24 AM9/5/17
to Santosh Chauhan, Serenity BDD Users Group, Shubham Shukla
What do you mean by "only raw html data is displayed when index.html is opened"? Could you post a screenshot?

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

For more options, visit https://groups.google.com/d/optout.



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better
http://johnfergusonsmart.com  |  john....@wakaleo.com
___________________________________________________

We love breaking down silos and helping smart teams collaborate better! Ask about our tailored on-site workshops in Agile Product Planning, BDD Requirements Discovery,  BDD, TDD and Clean Coding, and Advanced BDD Test Automation.

Need some help with Serenity BDD? Check out our Serenity BDD training and support packages here.
___________________________________________________

Santosh Chauhan

unread,
Sep 5, 2017, 2:31:40 AM9/5/17
to Serenity BDD Users Group, chauha...@gmail.com, shubha...@gmail.com

Hi John,

I mean report is fine with content  i.e. feature, scenarios, cases,  number of PASS & FAIL etc.. every thing is ok except look and feel. 
Pie chart, color is missing. attaching the snap of report.

Thanks, Santosh

Thanks, Santosh.

John Smart

unread,
Sep 5, 2017, 2:33:27 AM9/5/17
to Santosh Chauhan, Serenity BDD Users Group, Shubham Shukla
Is that locally or on Jenkins?

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

For more options, visit https://groups.google.com/d/optout.

Santosh Chauhan

unread,
Sep 5, 2017, 2:34:24 AM9/5/17
to Serenity BDD Users Group, chauha...@gmail.com, shubha...@gmail.com
It's on local machine. I am using grade in my project. 

80Vikram

unread,
Feb 14, 2018, 11:25:54 AM2/14/18
to Serenity BDD Users Group
Hi All,

Anybody could get this issue fixed on Jenkins ?

https://github.com/serenity-bdd/serenity-cucumber/issues/66#issuecomment-365657798

JAVA_ARGS="-Djava.awt.headless=true -Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox allow-forms allow-scripts; default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src data:;\""

Please clarify if I'm missing something in above config ?

Thanks & Regards,
Vikram

80Vikram

unread,
Feb 14, 2018, 11:52:01 AM2/14/18
to Serenity BDD Users Group
I got it working by running below command in Jenkins

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

Reference

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

Regards,
Vikram
Reply all
Reply to author
Forward
0 new messages