Adding Columns and Rows to an ATML Test Results 6.01 or 5.0 Report
- Updated2025-07-23
- 3 minute(s) read
Before you add extra information to a report, confirm that other XSL templates do not already add to the report the result information you want to include.
TR6_Horizontal.xsl or TR5_Horizontal.xsl
To add custom columns to reports using the TR6_Horizontal.xsl or TR5_Horizontal.xsl file, you must modify the XSL templates to add a column and then add data to the new column. Complete the following steps to add an extra StepID column to the right side of the report table using the TR6_Horizontal.xsl or TR5_Horizontal.xsl file. You can also copy and add the following code for each new column you want to add.
- Open the .xsl file you want to change.
- Search for the <!-- Customization variables--> comment.
- Search for the gNumExtraColumnsToAdd variable and increment the value of the gNumExtraColumnsToAdd variable by the number of columns you want to add. The initial value is 0. For example, to add one extra column, replace the 0 value with 1, which results in the following line of code: <xsl:variable name="gNumExtraColumnsToAdd" select="1"/>
- Search for the CREATE_EXTRA_COLUMNS comment and uncomment the following
code:
<td rowspan="2" valign="bottom" style="text-align:center;" width="10%"> <b>StepID</b> </td> - Search for each of three instances of the ADD_COLUMN_DATA_1 comment and
uncomment the following code for each instance:
<td><xsl:value-of select="@testReferenceID"/></td>
The expression "@testReferenceID" specifies the XPath expression to obtain the testReferenceID from the XML file. You must customize this XPath expression to match the data you want to add to the additional columns. Refer to the W3Schools website for more information on XPath. Refer to ATML Test Results 6.01 and 5.0 Report Structure for the XML object structure.
The following figure shows a modified report with a StepID column added for Sequence Call steps using the TR6_Horizontal.xsl or TR5_Horizontal.xsl file.
TR6_report.xsl, TR5_report.xsl, TR6_Expand.xsl, or TR5_Expand.xsl
Complete the following steps to add an extra row with StepID information under each step in the report table using the TR6_report.xsl, TR5_report.xsl, TR6_Expand.xsl, or TR5_Expand.xsl file.
- Open the .xsl file you want to change.
- Search for each of three instances of the ADD_EXTRA_ROWS comment and uncomment
the following code for each
instance:
<tr> <td>StepID</td> <td><xsl:value-of select="@testReferenceID"/></td> </tr>
The following figure shows a modified report with a StepID row added for Sequence Call steps using the TR6_report.xsl or TR5_report.xsl file.
The following figure shows a modified report with a StepID row added for Sequence Call steps using the TR6_Expand.xsl or TR5_Expand.xsl file.