2012/8/11 CLAYTON <
clayto...@yahoo.co.uk>:
>
> Was wondering if anyone has taken the output.xml file and written a xsl for
> it to transform it into other formats (html, pdf etc)
In very early days of Robot Framework, before open sourcing, reports
and logs were actually generated using XSLT. It turned out to be so
slow and memory hungry hungry process, and the XSL syntax itself was
pretty annoying, that we got rid of it. I would expect XSLT engines to
be better nowadays, but I still wouldn't use this approach for
anything too complicated. For showing just some information from the
output it might work well, though.
> Would be interested to see an example, as i'd like to style the output.xml
> to html using company logo and css.
I have actually been thinking that it would be nice to have some
placeholders in report and log where you could inject custom content.
If there was one place in the head section and another in body, you
could add your own styles and other content easily. The usage could be
something like this:
pybot --LogContent head:styles.css --LogContent body:stuff.html tests.txt
This should actually be pretty easy to implement.
Cheers,
.peke
--
Agile Tester/Developer/Consultant ::
http://eliga.fi
Lead Developer of Robot Framework ::
http://robotframework.org