protractor-beautiful-reporter icon indicating copy to clipboard operation
protractor-beautiful-reporter copied to clipboard

Feature: Create a screenshot OR single html file of the compiled AngularJS view

Open RonanCodes opened this issue 5 years ago • 8 comments

Feature

Create a screenshot OR single html file of the compiled AngularJS view

Why

Jenkins HTMLReport plugin cannot display an AngularJS project, but it can display a simple HTML file.

RonanCodes avatar Aug 11 '19 02:08 RonanCodes

Do you know that you can add an additional reporter alongside the htmlreporter? You could add a Junit reporter and then import the result in jenkins with the Junit plugin https://wiki.jenkins.io/display/JENKINS/JUnit+Plugin. Usage of multiple reporters is describe here https://wiki.jenkins.io/display/JENKINS/JUnit+Plugin

miller45 avatar Aug 12 '19 10:08 miller45

Making a screenshot (or better pdf) should be possible with opening the final report with phantomjs and make a pdf.

miller45 avatar Aug 12 '19 10:08 miller45

I think a combination of these two things would be great when going back through your Jenkins builds trying to figure out where a bug was introduced.

RonanCodes avatar Aug 12 '19 10:08 RonanCodes

@miller45 is the PDF generation something we could add to this project? Where's a good starting point?

RonanCodes avatar Aug 12 '19 10:08 RonanCodes

@miller45 I'll give the junit approach a go and let you know how it goes!

RonanCodes avatar Aug 12 '19 10:08 RonanCodes

@RonanC If you don´t need screenshots it has the advantage that you can full integration into jenkinks

miller45 avatar Aug 14 '19 07:08 miller45

@RonanDConnolly another user meantioned in #161 that you can make pdfs with chrome just via commandline options. I created an example for that in the wiki. Please look at Print-report-to-pdf if you wish.

miller45 avatar Aug 21 '19 10:08 miller45

Thepdf is black and white though. I still have to find out how to print background colors with chrome.

miller45 avatar Aug 21 '19 10:08 miller45