Showing screenshots in Jenkins of Ranorex Report
Posted: Wed May 28, 2014 11:31 am
So I followed the article http://www.ranorex.com/blog/make-your-r ... sing-xunit to get some detailed information about my Ranorex tests in Jenkins.
I would like to add the screenshot to the stacktrace output when a test fails but it looks like Jenkins does not continue reading after Stack trace output.
This is my code in the changed XSL file:
So the stack trace is shown properly, but paragraph "TEST" and the image aren't shown. Also when looking at the source of the page you won't see anything of it.
Does anyone know why this is "ignored"?
I would like to add the screenshot to the stacktrace output when a test fails but it looks like Jenkins does not continue reading after Stack trace output.
This is my code in the changed XSL file:
Code: Select all
<!-- Provide Details (Stacktrace) in case of a Failure -->
<xsl:choose>
<xsl:when test="@result='Failed'">
<xsl:element name="failure">
<xsl:attribute name="message">
<xsl:value-of select="normalize-space(errmsg)"></xsl:value-of>
</xsl:attribute>
<xsl:value-of select="normalize-space(.//item/metainfo/@stacktrace)"></xsl:value-of>
<!--<img src="{.//item/@errimg}" width="100" height="100"/>-->
<p>
TEST
</p>
<img>
<xsl:attribute name="src">
$WORKSPACE\<xsl:value-of select="normalize-space(.//item/@errimg)"/>
</xsl:attribute>
<xsl:attribute name="width">
100
</xsl:attribute>
<xsl:attribute name="height">
100
</xsl:attribute>
</img>
</xsl:element>
</xsl:when>
</xsl:choose>
Does anyone know why this is "ignored"?