NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Create Two TS3.5 Reports (XML and ATML)

I there , I am trying to create Two Reports from one execution. I found a great document with an example sequence file for doing just this on the NI website. This works great when trying to generate a txt report and maybe an xml or html report but I am trying to generate an xml file and an atml file and I want the xml file to be displayed at the end of the execution. All that happens is that my xml report is generated and displayed but no sign of the atml report. (I know it's really an xml report) but everything works fine when using txt and html
 
Any ideas ?
 
I've attatched my test sequence and a multiple report sequence to be used as the process model.
 
 
 
 
Download All
0 Kudos
Message 1 of 17
(5,888 Views)

Hi Chris,

  well it took some playing, but I think I've done it.

I've made a new process model for you that appears to work fine for me.

I've included a new configure report options too so you can setup a second set of reports easily.

You'll have to add one thing though.... copy the "TestStandModelReportOptions.ini" file from the cfg directory into a directory called :

"C:\Program Files\National Instruments\TestStand 3.5\Cfg\SecondReportDetails"

If you don't do this, then it won't work. You can modify where this is with the path supplied to the "Get 2nd Report Options" step in the TestUUTs and Single Pass execution entry points.

Please let me know how you get on. (Or call in to the office and I'll talk you through it - just use the service request number you had previously with me)

Thanks

Sacha Emery
National Instruments (UK)

// it takes almost no time to rate an answer Smiley Wink
Download All
Message 2 of 17
(5,874 Views)

sasha

I gave this some extensive trials using my production test sequences.

This works great and does almost exactly what I want, one thing I can't quite figure out is why a temporary report is created even after execution has finished ?

One other thing is that it appears to be sensitive to which file format is specified in Report options and Which format is specified in 2nd, for xample if I specify XML in report options and ATML in 2nd Report Option then I get 2 reports (both look correct) and the ATML report is viewed at the end of test , if I swap them over then the XML file doesn't open correctly at the end of execution. I think it's trying to use the XML stylesheet (Expand.xsl) to view the ATML file.

Thanks for kick starting this a also providing a real inight into report generation.

Regards

Chris

0 Kudos
Message 3 of 17
(5,859 Views)

Hi Chris,

  just to close the information loop on the TempReport file, I got this reply from the US :

The TempReport is generated to prevent a memory leak by IE when displaying reports in the ReportView control.  Unfortunately, there is no way to disable it or display a report on it. 

Thanks

Sacha Emery
National Instruments (UK)

// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 4 of 17
(5,831 Views)

In TestStand, what stylesheet do you specify for use with the ATML format.  I'm trying to understand how to use this, and I found the link http://grouper.ieee.org/groups/scc20/tii/ATML/Schemas/Current/ which calls out TestResults.xsd.which (from what I read) is the latest sanctioned schema for (ATML-based) Test Results.  Just wondering what you used/recommend

 

0 Kudos
Message 5 of 17
(5,692 Views)
Hi Mr Bean,

Currently there is only one style sheet available  for ATML within TestStand (the trml.xsl). From my understanding the Testresults.xsd file is a schema documenting how the ATML files should be formatted and structured. The style sheet is all to do with how you display a given xml file.

Regards

Jon Bowers
Applications Engineer
NI UK & Ireland
0 Kudos
Message 6 of 17
(5,654 Views)

'm not very well versed in style sheets, so I don't really know if trml.xsl provides an appropriately formatted output.  However, ust from the header,

- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:n1="http://www.ieee.org/ATML/2004/01/TestResults" xmlns:c="http://www.ieee.org/ATML/2004/01/Common" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
 
it looks like this stylesheet is in conformance with an ieee ATML standard.
 
Is there any reason/limitation TestStand won't allow another style sheet to be used instead of trml.xsl.
 
 
0 Kudos
Message 7 of 17
(5,653 Views)
I didn't mean to suggest that you can't use other style sheets, but TestStand only ships with the trml.xsl style sheet. If you want to use another one then you would have to locate one for the ATML spec or create one your self.

Jon
0 Kudos
Message 8 of 17
(5,649 Views)

What do you recommend as the starting point for examples/instruction/tutorials, on how, using LabVIEW (8.21), to fill TestStand's ResultList container, such that it has everything it needs to satisfy the ATML schema/stylesheet. 

Also, I haven't looked at the schema closely enough to know if there are mandatory fields, but what happens at TestStand if some mandatory field is missing within the ResultList.

0 Kudos
Message 9 of 17
(5,644 Views)

I saw that TS 4.0 is out and that it is "compliant with Version 2.0 of the ATML Test Result standard"

We are using TestStand 3.5.  What version (draft, 1.x) of the IEEE ATML standard for report text is being used in TS3.5. 

Also, it seems like (at least in TS 3.5) that the schema cannot be specified (as you can with the stylesheet).  Is it true that TS, in general, embeds the XML schema/validation, and therefore, if ATML goes to version 3.0, 4.0, etc in the future, users of TestStand are stuck with what ever their TS version supports (like we're now experiencing with TS 3.5)?

0 Kudos
Message 10 of 17
(5,637 Views)