NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you add totaltime for all test steps in the report

Solved!
Go to solution

We are using xml reporting with the horizontal.xsl.  I see the totaltime property in the xml file.  I was able to un-comment some code in the stylesheet to display the module time for pass/fail steps.  I would prefer to see totaltime for every step.

 

Alternative is to write some Labview code to extract test step name and associated times from the xml.

0 Kudos
Message 1 of 5
(4,613 Views)

Hello

 

If you can able to understand the Horizontal xsl, it is very easy to get show the available fields in the XML in the Report. Through LabVIEW also it is possible to extract the required Fields from the XML, you have to design an XML Parser  in the LabVIEW to parse the Step Name and it's time

 

Attached code (a sample) can able to parse the Test Step Names, give the Report XML file Path as input, it will parse Step Names.

 

What makes me unclear is, how can you use LabVIEW to show the total time?

 

 

AshwiN,

0 Kudos
Message 2 of 5
(4,604 Views)

Hello kwkengineer,

 

In order to add the total time for each step, you can add a Sequence File Callback for SequenceFilePostResultListEntry, add a statement step, and use an expression similar to:

 

Parameters.Result.ReportText = "Total Time: " + Str(Parameters.Result.TS.TotalTime)

 

This will give you the total time for each step in the report.

 

StepTotalTimes.JPG

 

Regards,

 

Brandon V.

Applications Engineering

National Instruments

www.ni.com/support

 

 

Message 3 of 5
(4,578 Views)

so there is not a "canned" way in the horizontal.xsl to turn on the display of this value?  The data is already in the xml.  I don't want to change the test sequence.  I would just like to have a different report that shows the data.

0 Kudos
Message 4 of 5
(4,572 Views)
Solution
Accepted by topic author kwkengineer

Problem solved.  I wrote my own little style sheet to just display the times in a table. Works better than processing in Labview.  Labview was taking hours to process the xml and give me the same output.  Internet Explorer takes about 15 seconds.

0 Kudos
Message 5 of 5
(4,564 Views)