Changing the Display Format of Execution Time in an XML Report
- Updated2025-07-23
- 2 minute(s) read
XSL and JavaScript code generate the HTML code for the execution time information, for which the default display is in seconds. Complete the following steps to display the execution time information in Hour:Minutes:Seconds format.
- Open the .xsl file you want to change.
- Search for the CHANGE_TOTAL_TIME_FORMAT comment.
- Modify the TotalTime XSL template to use a different display format for execution time.
- Remove the comment tags from around the following XSL template and add comment tags around the
existing TotalTime template in the
horizontal.xsl file and in the
report.xsl
file:
<xsl:template match="Prop[@Name='TotalTime']"> <xsl:param name="reportOptions"/> <xsl:value-of disable-output-escaping="yes" select="user:GetTotalTimeInHHMMSSFormat (Value)"/> </xsl:template> - Remove comment tags from around the following XSL template and add comment tags around the
existing TotalTime template in the
expand.xsl
file:
<xsl:template match="Prop[@Name='TotalTime']"> <xsl:param name="includeStepResults"/> <xsl:param name="includeTimes"/> <xsl:param name="useLocalizedDecimalPoint"/> <xsl:value-of disable-output-escaping="yes" select="user:GetTotalTimeInHHMMSSFormat (Value)"/> </xsl:template>
- Remove the comment tags from around the following XSL template and add comment tags around the
existing TotalTime template in the
horizontal.xsl file and in the
report.xsl
file:
horizontal.xsl
The following figure shows the modified execution time in a report using horizontal.xsl:
report.xsl
The following figure shows the modified execution time in a report using report.xsl:
expand.xsl
The following figure shows the modified execution time in a report using expand.xsl: