04-20-2011 03:21 PM
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.
Solved! Go to Solution.
04-20-2011 11:02 PM - edited 04-20-2011 11:04 PM
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,
04-21-2011 04:19 PM - edited 04-21-2011 04:19 PM
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.
Regards,
Brandon V.
Applications Engineering
National Instruments
04-21-2011 04:38 PM
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.
04-22-2011 08:49 AM
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.