Hi,
My colleague and I wrote a few new codelines for the .xsl file and voila the result gives you a report with un-ticked and hidden debug-messages.
These lines are the one which did the trick:
<xsl:variable name="RXStyle" >
<xsl:choose>
<xsl:when test="@level!='Debug'">
<xsl:value-of select="@style" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'display:none'" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr class="{translate(@level,' ','_')}" style="{$RXStyle}" onMouseOver="DisplayHoverMenu(this)" onMouseOut="HideHoverMenu(this)">The first code-snipped is for hiding the debug-messages for now.
The second is for un-ticking the "Debug" checkbox by default.
<xsl:choose>
<xsl:when test="$level/../../activity[@type='test module']">
<xsl:choose>
<xsl:when test="$levelName!='Debug'">
<input type="checkbox" id="checkBox{$currentId}" name="checkBox{$currentId}" onClick="$(this).parent().parent().next().find('tr.{translate($levelName,' ','_')}').toggle();" checked="1" />
</xsl:when>
<xsl:otherwise>
<input type="checkbox" id="checkBox{$currentId}" name="checkBox{$currentId}" onClick="$(this).parent().parent().next().find('tr.{translate($levelName,' ','_')}').toggle();" />
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" id="checkBox{$currentId}" name="checkBox{$currentId}" onClick="$('tr.{translate($levelName,' ','_')}').toggle();" />
</xsl:otherwise>
</xsl:choose>You can copy this modified code into your .xsl file or you copy the whole modified .xsl stylesheet from the attachment into your Report folder. In the .xsl file from the attachment another line of code needs to be modified, namely the one where the .xsl file is called recursively.
ss.load("MODIFIED_RanorexReport3.xsl");To tell Ranorex to use this stylesheet instead of the default RanorexReport3.xsl open your Ranorex, go to the TestSuit properties (see
Test Suite Settings) and choose as Custom XSL File path the one of the modified stylesheet.
Wish you a lot of fun with this.
Larissa
Ranorex Support Team