galenframework / galen

Layout and functional testing framework for websites
http://galenframework.com
1.41k stars 162 forks source link

Make fat report file #215

Open hypery2k opened 9 years ago

hypery2k commented 9 years ago

It would be really helpful if we create if create a single file (HTML or PDF) of the report. This can be useful for sending the reports via email...

ishubin commented 9 years ago

Ok, sounds reasonable. At the moment I am doing a big refactoring and changing the way the HTML and JSON reports are generated. Once this is finished we can discuss this story

hypery2k commented 9 years ago

I know, I just wanted to mention it, because you're currently redesigning this part ;) If you need help do not hesitate ;)

ishubin commented 9 years ago

sure, thanks :) I am almost finished. Going to push later a big chunk of work. I like the idea of PDF reports because you can also nicely embed images in it

hypery2k commented 9 years ago

we can use PDFBox:

public void addImageToDocument(final PDDocument doc, final BufferedImage bufferedImage) {
  PDXObjectImage ximage = new PDJpeg(doc, bufferedImage);
}
hypery2k commented 9 years ago

i searched a little bit for a client side solution. What do you think about http://pdfmake.org/playground.html?

ishubin commented 9 years ago

I would prefer to have a more simple solution. This seems too complex for such a minor feature. And why not use an open-source Java library for that http://pdfbox.apache.org/?

hypery2k commented 9 years ago

you're right. Better to use this one. I will try a little bit with the library