How to integrate test fail screen shot with test report

381 views
Skip to first unread message

dw...@groupon.com

unread,
Jan 5, 2018, 12:54:14 PM1/5/18
to Geb User Mailing List
Hello,

I am new to Geb-spock. I 'm using GebReportingSpec for test reporting. Its taking screenshots and put them in a separate folder. They are not integrated with index.html or the testReport.html. I am using maven and maven-surefire-plugin for my project. Tried spoke-reports for custom reporting but it always failed to create the instance of the TemplateReportCreator. Even I can not log the test steps in my log file. Hence need to print every steps on the console. Its really very important to have a better logging and specially incorporate screen shots with the test report. Please help me out.

Thanks,

Roman Tretyak

unread,
Jan 9, 2018, 7:49:49 AM1/9/18
to Geb User Mailing List
Hey,

I'm not sure whether surefire plugin allows you to embed screenshots/customize the report on your own, but it feels like most likely you'll have to refrain from using it and go with something custom.
Your goals can easily be achieved with a geb-spock-reports library literally out of the box. If you are having troubles with spock-reports - please provide more details on that. But first make sure you follow all the instructions on their github page carefully.
Given you started using spock-reports, you now have ability to implement your own ReportCreator if required (or extend existing ones). Combined with Geb's Custom Reporters and Reporting Listeners you have almost unlimited possibilities for reporting.

-Roman

пятница, 5 января 2018 г., 19:54:14 UTC+2 пользователь dw...@groupon.com написал:

Dwiparna Pal

unread,
May 2, 2018, 1:31:02 PM5/2/18
to geb-...@googlegroups.com
Hey Roman,

Many thanks for your answer. I tried implementing the custom listener. But it was always giving me error. Now I just want to add the operating system and the browser under test to be added to the test report. If you could help me will be great.

Thanks,
Dwiparna

--
You received this message because you are subscribed to a topic in the Google Groups "Geb User Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geb-user/yrEtLAmlEUI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/42b7164d-e2db-49a1-858d-34af42a5b442%40googlegroups.com.

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

Reply all
Reply to author
Forward
0 new messages