I want to customize my report (custom template) files by changing the colors of the piechart. I am not familiar with XSLT, but I can not manage to change the default colors of the chart at all. In the RanorexReport.xsl, I've found the lines
Code: Select all
<xsl:if test="(@result='Success' or (@result='Failed' or @result='Active')) and $max > 0">
<xsl:variable name="maxWidth" select="150" />
<xsl:variable name="widthSuccess">
<xsl:value-of select="round(($success div $max) * $maxWidth)" />
</xsl:variable>
<xsl:variable name="widthFailed">
<xsl:value-of select="round(($failed div $max) * $maxWidth)" />
</xsl:variable>
<xsl:if test="$widthSuccess < $maxWidth and $widthFailed < $maxWidth">
<div id="chart{@rid}" style="position: absolute; display:block; font-size:0; width:{$maxWidth}px; margin-top: 5px; right:60px; height: 8px; background-color:#777; border:1px #979797 solid; overflow: hidden; top: 6px; ">
<div style="position: absolute; width:{$widthSuccess}px; height: 8px; background-color:#42af6f;" ></div>
<div style="position: absolute; margin-left:{$widthSuccess}px; width:{$widthFailed}px; height: 8px; background-color:#e10000; " ></div>
</div>
</xsl:if>
</xsl:if>
<span class="duration">
<xsl:value-of select="./@duration" />
</span>
Code: Select all
<!-- PIECHART -->
<xsl:if test="not(@testentry-activity-type = 'testmodule')">
<h3 id="testCasesHeader">Test case result summary</h3>
<div id="testCasesPie">
<xsl:attribute name="totalsuccesstestcasecount">
<xsl:value-of select="@totalsuccesstestcasecount" />
</xsl:attribute>
<xsl:attribute name="totalfailedtestcasecount">
<xsl:value-of select="@totalfailedtestcasecount" />
</xsl:attribute>
<xsl:attribute name="totalblockedtestcasecount">
<xsl:value-of select="@totalblockedtestcasecount" />
</xsl:attribute>
</div>
</xsl:if>
</div>