NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Change "SerialNumber" to other text in Teststand report

Solved!
Go to solution

Hello Everyone,

 

I would like to change "SerialNumber"  text into Report Header as shown in figure. Is there any easy way to do this?

Just replace "SerialNumber" with othertext for example "XYZ".

 

 

Searl_number.PNG

Thanks in advance.

Kuddo welcomed
CLAD-CTD
0 Kudos
Message 1 of 4
(2,450 Views)
Solution
Accepted by Gab008

If you're using an XML or ATML report you should be able to do it by just modifying the stylesheet:

http://www.ni.com/product-documentation/54604/en/?OpenDocument

 

I played around with the ATML TR6_Expand one and got it to work by modifying "Serial Number" here:

<xsl:call-template name="PutBatchUutLink"/>
<h3>
	UUT Report
</h3>
<table class="uutTable">
	....
	<tr>
		<td>Serial Number :</td>
		<td>
			<xsl:value-of select="tr:UUT/c:SerialNumber"/>
		</td>
	</tr>
	....

stylesheet.PNG

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
Message 2 of 4
(2,435 Views)

Hello,

 

Sorry, I am aware this is an old thread, but I am also working on something similar.

 

Can you please tell me where TestStand pulls the SerialNumber from using the statement:

 

"<xsl:value-of select="tr:UUT/c:SerialNumber"/>"

0 Kudos
Message 3 of 4
(1,566 Views)

The Serial Number gets pulled from the actual XML report that the stylesheet is translating:
Capture.PNG

If you're customizing stylesheets, I highly recommend going through some of the documents on w3schools about XPath and XSLT: https://www.w3schools.com/xml/xpath_intro.asp

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 4 of 4
(1,559 Views)