NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand, modifying xml report header

1) How do I add a station gloabl variable to the XML report header? I am using standard expand.xsl.

 

2) Does the example on this page work to change the displaying execution time in HH:MM:SS format? I am not seeing the expected resutls.

http://zone.ni.com/reference/en-XX/help/370052H-01/tssuppref/infotopics/changing_time_display/

 

Thanks,

-TC

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

Hi,

 

Here are the answers to your queries assuming you are using teststand 4.2 or above:

 

1. Report header modification in expand.xsl is mentioned in the following link: http://zone.ni.com/devzone/cda/epd/p/id/4759

 

    In this explanation, the text which is getting display after the report generation can be replaced by a variable(local or global) in the "Modifyreportheader" callback.

 

2. The display execution does work as explained by NI in the link provided.

 

If you want the example for the above two queries please find the attached files and explaination given below.

 

In the sequence file, in "ModifyReportheader" callback, the first statement includes

"  

Locals.newstring=" <Prop Name='New_Text' Type='String' Flags='0x0'><Value>"

+Locals.message+"</Value>

</Prop>

"

 

where "locals.message" can be replaced by global variable.

 

and you need to place the "expand.xsl" in stylesheets folder. Please rename the existing "expand.xsl" and place the new one.

Hope this helps.

 

Regards, 

Surya.

0 Kudos
Message 2 of 4
(3,339 Views)

Thanks much -- I am using Teststand 4.1.1 and the example for modifying the header does not seem to work.  Any ideas as to how I can modify it?

 

Thnx

-TC

0 Kudos
Message 3 of 4
(3,316 Views)

Try with the sequence attached.

0 Kudos
Message 4 of 4
(3,309 Views)