Remove Spaces Between Step Results in XML Report in Teststand

Updated May 11, 2023

Reported In

Software

  • TestStand

Issue Details

I'm generating reports in xml format with the style sheet horizontal.xsl as part of my test system based on TestStand. Each flow control step create an indentation level in my report and adds a space between the results.  Following a screenshot of my xml reports:

How can I remove the indentation level and the spaces?

Solution

The appearance of the report is defined in the horizontal.xsl that is located in <TestStand Public>\Components\Models\TestStandModels\StyleSheets to modify the file you can use a text editor. Follow the steps:

1. Open the horizontal.xsl file and search the Java Section 3.
2. To remove the space generated by the indentation level set the gIndentationLevel variable equal to 0.



3. To remove the space at the end of the table, and search Java Section 6 and locate the EndTable() funcion.
4. Remove the break character <br> in the return of the EndTable() function:
5. Save and close the horizontal.xsl file.

After executing a sequence file the results will look like:

Image_2020-07-01_15-23-25.png

Additional Information

Refer to Customizing XML Report Style Sheets for additional details.