NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Test Report Expand/Collapse Problem

Solved!
Go to solution

Cluster/container can not expand/collapse on pc without TestStand installed.  So it looks like all the data in the cluster is empty.

The problem is img alt="":

<img alt="" src="C:/Program Files/National Instruments/TestStand 2017/Components/Models/TestStandModels/ATML/StyleSheets/plus.png" onclick="expandCollapseTR(event)" class="trExpanded">output Cluster [Out]:

 

Without TestStand develop or runtime, there is no plus.png.  img alt becomes must have.  Even a space works.

Here is how it looks like on pc w/o TS:

image.png

 

Compare to with TS installed:

TS Installed.png

 

Test report from an NI TS example in html is attached.

George Zou
0 Kudos
Message 1 of 6
(137 Views)

If replace <img alt="" with <img alt=" ", at least I can expand/collapse:

image.png

image.png

 

George Zou
0 Kudos
Message 2 of 6
(118 Views)

1) The easiest option is to enable option to create a PDF:

 

Generate PDF Report - Generates a copy of the report in PDF format in addition to the report format you select. TestStand generates the PDF in the same directory as the report with the same name.

 

2) As you saw the images for ATML reports are here under TestStand, "C:\Program Files\National Instruments\TestStand 2017\Components\Models\TestStandModels\ATML\StyleSheets\", and unless those files are found at that path, they will not appear in the report. There is a report options that controls whether paths embedded in the report is absolute or not. If you use this option, you will need to ensure that the report has relative access to those files. I have not used this in a long time but you could try it and see what the paths look like and you will need to package the stylesheet and images accordingly to be found by the report.

 

Store Absolute Path—When enabled, instructs TestStand to use the absolute path for the style sheet file when storing the path in the processing instructions of an XML or ATML report. The style sheet file path is determined using the Engine.FindFileEx method in the TestStand API. Style sheet paths are relative with respect to the file path of the XML or ATML report.

When you disable this option, the path specified in the Style Sheet option is stored in the processing instructions of the XML or ATML report

 

3) There is an option in the Tools menu that you could look at which I think works with ATML files as well but this requires a post processing step to deploy the reports, but something to consider.

 

Package XML/HTML Files for Distribution—The XML Packaging Utility facilitates the redistribution of XML report files created in TestStand. The utility copies local XML report files you select, including related style sheets, image files, and referenced files, to a destination directory you specify so you can view the XML report on a computer that does not have TestStand installed.

 

That is all that I can think of...

Scott Richardson
https://testeract.com
Message 3 of 6
(104 Views)

Thanks for reply, Scott.

I'm using TS 2017 SP1.  It seems doesn't have the pdf option.

We do have TS 2020 in the lab.  But pdf doesn't support expand/collapse.

 

Tried absolution path option before, it still rely on plus.png.  If not found, still can't expand/collapse.

 

Sorry I didn't make it clear.  Is there a way to modify the style sheet so that image alt doesn't empty?

If not, I can create a VI to modify reports before give them to coworkers/managers.

 

 

George Zou
0 Kudos
Message 4 of 6
(73 Views)
Solution
Accepted by topic author zou

I modified TR5_Horizontal.xsl.  Replace all <img alt=""  with <img alt=" ".  It works!

Now the html file can expand/collapse even when plus.png not found.

Problem solved.

 

George Zou
0 Kudos
Message 5 of 6
(70 Views)

Nice, thanks for sharing back. Seems that TestStand could make this simple change if still an issue.

Scott Richardson
https://testeract.com
0 Kudos
Message 6 of 6
(59 Views)