TestStand 3.1 XML Reports in TS4.1

I am trying to implement TestStand 4.1 in our facility as seamlessly as possible. This means I still need to run TS3.1 sequences with no modifications on both systems with TS3.1 and with TS4.1.
My problem is with the creation of xml documents when run in TS4.1. When we first implemented xml it was on TS2.0 which didn't support xml at the time. So some patch was downloaded from NI I believe and it worked fine. We continued to use the patch when we switch to TS3.1. But when I now run the TS3.1 sequences in TS4.1 the reports are generated, but slightly differently, I cannot view the xml document in I.E. The error is:
"Required white space was missing. Error processing resource"
and the offending line(s) in the report are:   <ATMLStylesheetMRU type=" dimensions="[0..2]" decimateBy="0">
  <Element type="" index="[0]" name="ATMLStylesheetMRU" >trml.xsl</Element>
  <Element type="" index="[1]" name="ATMLStylesheetMRU" ></Element>
  <Element type="" index="[2]" name="ATMLStylesheetMRU" ></Element>
  </ATMLStylesheetMRU> 
These lines do not appear in the report if the sequence is run with TS3.1. 
I modified the TS3.1 Process model and ReportGen_XMLseq to use the original "modelsupport.dll" from TestStand 3.1 since the TS4.1 version didn't support some of the commands called. I also changed the report.xsl and horizonal.xsl called from the process model to the TestStand 4.1 versions, but the problem is still there. 
I admit to not knowing exactly how the reports are generated, but I suspect the above lines are there because the API calls are to the TS4.1 engine as it is the active TestStand version. Looking for any sort of help on this one, not that well versed in xml. Am I trying to do the impossible? I don't want to switch the reports to the TS4.1 format at this time, as we have custom software that imports the data and it currently doesn't work with the TS4.1 report format.
Thanks 

Cabman,
In TS 3.5 we added a new type of report called ATML. The
offending lines in the report that you are refering to, is to store
stylesheet information for this new report format.
But adding these new properties to ReportOptions should not cause the issues you are describing. 
I
did notice that the text you pasted is not exactly what we generate in
TS 4.1.Here is why we generate in TS 4.1 for xml reports
    <Prop Name='ATMLStylesheetMRU' Type='Array' LBound='[0]' HBound='[2]' ElementType='String' Flags='0x0'>
        <Value ID='[0]'>trml.xsl</Value>
        <Value ID='[1]'></Value>
        <Value ID='[2]'></Value>
    </Prop>
In
the text you pasted, I noticed that type attribute is empty in all 4
lines and also the generated XML snippet looks different.
I am not sure how your XML report was generated,  but that might be the issue. 
In TS 3.0, we introduced a new API called PropertyObject.GetXML which can be used to generate an XML report. 
To help diagnose the problem I have a couple of questions. 
1. Do you still use your TS 2.0 process models or are you using TS 4.1's process models?
2.
Can you give me more details of how does the XML report get generated
in your system? Are you using the 2.0 XML report generation mechaism or
did you move to using TS 4.1's XML report generator?
Regards
Anand JainNational Instruments

Similar Messages

  • Programmatically transform xml report using Labview

    I want to transform the standard xml report from Teststand into a more user-friendly file format for users that need to view reports, but don't have access to the test station.  Check out the attached code.  It should work, but I get this error. "Objects of type 'Script2' do not have such a member"  'Script2' is referring to the msxsl:script javascript node in the Teststand horizontal.xsl stylesheet. 
    Solved!
    Go to Solution.

    I agree with kwkengineer.  The HTML report is fugly... haha.  You can change the colors but I still don't like the format.
    kwkengineer,
    I was actually trying to do the same thing as you.  We have customized our style sheet and now people are complaining because they need it and the xml file to view it.  I also don't want to rewrite the HTML generation.  I might welcome the task if we were using the new version of TestStand with plugins but we aren't, and it's too expensive to upgrade right now.
    I do know that if you right click on the report in the viewer and choose "view source" you will get an html output of your xml report.  So my question is, and I dig around some more because I've only spent about an hour on this, how does the viewer in TestStand translate the xml report to the html one that is displayed in it.  I noticed there is a TempReport.html in the report folder.  However, it disappears when you close the finished execution.
    Not sure if any of this is helpful but I will spend some more time routing around.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to discard skipped test results in XML report generated from TestStand

    Hello,
    I'm generating XML report from TestStand. I have more than 100 test cases & user has the flexibility to select the test cases to execute or to skip.
    Problem statement:
    1. In Configure\report options there is filter expression to filter test results to be logged. However, this filter is disabled for XML report.
    2. Is there a way to compress XML file using either encryption or any other methods?
    I understand that there would be two methods ideally for my problem statement #1 above:
    A. To have a workaround in reportgen_xml.seq to pragmatically log only executed test cases and discard skipped test results.
    B. Modify stylesheet supplied by NI to discard skipped test results.
    For problem statement #2 above:
    I am able to encrypt the data before logging it to XML. But I don't know how to modify the stylesheet to decrypt the same using either public/ private encryption keys. Can anyone bring in more ideas here !!!
    My preference would be to implement using #A above to reduce the XML file size which is ~4 MB will all test results (skipped + executed). If this is not possible my last option would be to implement using #B above
    I would appreciate if someone can help me for my problem statement? I'm using TestStand 2010
    Solved!
    Go to Solution.

    I have another solution and that is to actual discard the result before you get to the report stage.
    You can do this by use of the Override Callback SequenceFilePostResultList and if Skipped then discard the result from ResultList.
    Check out this link.
    Regards
    Ray Farmer

  • 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:MMS 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

    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.
    Attachments:
    Reportheader.zip ‏25 KB

  • How to show image in TestStand xml report

    Hi,
    I am using TestStand to run DLLs written over CVI.
    I am using the xml report for collecting results.
    Some of the tests i run require showing images on the report -
    I would like to know how to allow showing an image on xml report by writing a CVI code.
    Thanks,
    Moshik

    Hi Moshik,
    There is an example for inserting images in your report in this discussion:
    http://forums.ni.com/ni/board/message?board.id=330&message.id=2819&requireLogin=False
    TestStand uses the sequences named reportgen_***.seq that default to the
    C:\Program Files\National Instruments\TestStand 3.5\Components\NI\Models\TestStandModels directory for report generation.
    You can edit the reportgen_xml.seq for XML reports.
    Is it really necessary for your DLLs to do the image insertion?
    Gavin Fox
    Systems Software
    National Instruments

  • XML report display in TestStand 4.0

    I've just migrated from TS 3.5 to 4.0.  4.0 is more user friendly than 3.5.  But I can't display my XML report after running sequences.  If I choose other report format, everything is fine; if XML is set, the report file would be generated but I can't see it at sequence editor.   I forgot what I did because at the very beginning, the XML report was OK.  I posted my report configuration below and plz take a look.
    Thank you 
    Attachments:
    TS_report_3.JPG ‏60 KB
    TS_report_1.JPG ‏115 KB
    TS_report_2.JPG ‏63 KB

    Hey ADahl,
    NI doesn't really support customizing style sheets.  There is a great tutorial here: http://www.w3schools.com/xsl/default.asp
    It's really not that hard to figure out what to change once you get digging through the style sheets.  I found this site helpful when I customized mine: http://zone.ni.com/reference/en-XX/help/370052H-01​/tssuppref/infotopics/report_stylesheets_details/
     It lays out the sections so you can read the stylesheet better. 
    Failures should automatically be included in the report if that step is set to include results.  Here is a doc on including other data in a report: http://zone.ni.com/devzone/cda/tut/p/id/8289  You should get your globals into the report by using one of the methods in there.
    Honestly though when it comes to customizing the style sheet... there are a million and 1 ways to go about it.  What I did was comb through the xsl file until I found the header information.  Then I just added my own stuff in there and kind of copied off the format they had for the other stuff.  Now it's looking great.  I had to tweak some things here and there to get it exactly right.
    Let me know if you have any other questions,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Unable to load the XML Report

    Hi,
    I am using TestStand 3.1. Someone before me has developped a lot of things in our application : specific steps, specific process model, ... . Now this person is not here anymore and I have a test report display problem.
    After an execution, the execution window cannot display the test report and displays the following message :
    "Unable to load the XML Report.
    At line 285 End tag 'NOBR' does not match the start tag 'BR'."
    Also with Internet Explorer, the test report cannot be displayed (and he locates the error at lign 287) .
    Needless to say that I am a poor guy in XML code that's why I am asking you some help.
    But, I opened the .xml with a text editor and that is the part of the code which causes the problem :
    284 </Prop>
    285 <BLOCKQUOTE>
    286 <H5><NOBR>Begin Sequence: MainSequence
    287 <BR>(X:\DATA_Utilisateur\Florian DENEVE\04_GENERIC\GenericTestMainSeq\GenericTestMainSeq.seq)<BR></BR></H5>
    288 <table BORDERCOLOR=#000000 FRAME=BOX RULES=ALL WIDTH=70%><TBODY>
    (please, be careful with the lines numbers, because i don't think that IE and TestStand have the same numbering)
    I don't know if it's a problem of basic TestStand or if it's due to the new process model and modifications realized by my previous colleague.
    Any ideas ?
    Thanks in advance for your help.

    Ok, here they are.
    There is a file called Addons.cfg.sources but I had to rename it to get it to attach
    Attachments:
    Addons.cfg.sources.txt ‏1 KB
    Addons.cfg ‏53 KB
    ResultProcessing.cfg ‏189 KB

  • Changing Step Name in XML Report programmaticaly

    I am trying to change the step name programmaticaly in TestStand to reflect in the XML report. The step is executed several times in a loop, and every time the loop runs I want the step to be named differently in the XML report. For example, the names will be something like this < Test1: Signal Name 1>, <Test2: Signal Name 2> ....etc. Any help on this will be appreciated .
    Thanks,
    Sam

    Hi,
    The best time to change the name is before you perform the test, then it will get inserted in the ResultList and hence into your report.
    I have attached one way of doing this. You can also perform it after the Step you wish to change, in which case you would use the RunState.PreviousStep as a reference.
    You could call the API method as part of your code.
    Remeber, if you use a PropertyLoader to load Limits, and you have placed this inside the loop, then your Limits file for the Step Name must match the new step name not the old one that you see statically.
    This is a TS3.5 example.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    Sequence File1.seq ‏25 KB

  • Built in viewer not displaying XML report

    we are working on a test system that was originally developed elsewhere, using TestStand 4.0. It is generating XML report files, but not using the default NI schema, instead using both it's own 'custom' schema and reportgen sequence file for the report formatting. When it was running in TS 4.0, it all appeared to operate correctly, i.e. once the execution had come to an end, the built in TS viewer showed the XML file formatted correctly as defined in the XSL file.
    For a variety of reasons, we have needed to upgrade to TS 4.2.1, and as a result, the built in report viewer no longer displays the XML report at teh end of an execution. Instead, it shows an error ...
    'The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/<file_path>/TempReport.xml'
    Looking in the <file_path>, there is a TempReport.xml file, which is empty, hence the error message, but there is also the correct xml file, with data in. Clicking on the 'Viewer' button in the built in report viewer kicks off IE, which correctly shows the saved report file, complete with the formatting as defined in the xsl file, so it would appear that the custom reportgen sequence is still doing it's job correctly, just that the built in viewer has a problem... (Incidentally, if you try to refresh the viewer, as suggested in the error message, it brings back the same error, but repetatively creates a new TempReport file, with a number appended...)
    I've traced through the sequence model (this is the default model) and the tempReport file is only created when the sequence model finishes, (In fact checking the value of the Locals.ReportFilePath variable right at the end of the sequence model shows the correct filename...) suggesting that it is not a sequence problem, but rather something built into TS? (I saw some comment on another forum entry suggesting that a temp file is created when using IE as an external viewer, to prevent a memory leak)
    Realistically this is not a major problem, but it has got to the level of annoying now, having to open an external viewer even though the built in one is loaded by default... I'm guessing that the built in viewer is just a simple browser? if so, why is it being passed the wrong file/creating an empty xml file. If I set the report back to standard xml, I see the report ok, but without the formatting.
    It seems odd that this breaks in TS 4.2.1 but works fine in 4.0, when TS is meant to be backwardsly compatible
    Any ideas would be gratefully received...

    Thanks for the suggestion Anand... As it turns out, you were very nearly right. It turned out that it wasn't actually the stylesheet path that was causing the error, but instead the original developers had over-ridden the use of the standard NI xml report handler sequence to use one of their own, by setting the ReportOptions.format to a different name from xml. In the Setup Reports Display sequence call (uses a sequence in the modelsupport.seq file) there was a pre-condition on the format name, and as it no longer contained just xml, the precondition failed, and the sequence call that sets up temporary paths etc. never ran. I added an additional precondition state, to check for either xml, or the format used in this case, and everything sprung back into action. I'm not sure whether something similar was done previously in TS 4.0...
    Is there a list of these known problems in TS 4.2.1? I did look around the NI site a bit before posting the initial question, and didn't see anything that seemed to detail this...
    Once again, thanks for your assistance

  • Printing XML report (with report.xsl stylesheet) shows font colors, but not table highlight colors

    I am trying to print the XML report generated by TestStand to a PDF in order to archive it.  When the XML report is rendered in Internet Explorer, everything looks fine -- Sequence names are highlighted in teal, Pass is in green, Fail is highlighted in red.
    However, when I print this page to a PDF (using BullZip PDF printer, or even the XPS printer), all of the table highlighting is gone.  The UUT Result in the header is red or green font color depending on the pass/fail state, but sequence names and any formatting applied to tables within the body of the report have no highlighting.
    Is the stylesheet altering what is rendered when the XML file is printed?
    This is the output when viewed in IE 
    This is the output when viewed as a PDF printed from the same file viewed in IE.
    Thank you,
    Matt
    Solved!
    Go to Solution.

    Hey Matt,
    This is actually because of a default setting in Internet Explorer to not print background colors on webpages. To change it, simply go to the Page Setup screen (on IE9, you click the gear icon, then Print > Page Setup) and select the option to print background images and colors. After doing this, the printed report should contain the colors you see on your screen.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Internet Explorer 9 doesn't display XML Report Text

    I have just updated reasently to Internet Explorer 9 and now all of my XML Reports do not show the report text.  I've attached a pic where you can plainly see the report test in TestStand but not in IE9.
    The other intresting thing is if the XML is on one of our company network drives it displays fine just not if opened from the local drive.
    Any ideas?
    Solved!
    Go to Solution.
    Attachments:
    ReportText.png ‏150 KB

    Paul -
    This is a known issue that will be fixed in the TestStand 2010 maintenance release. If you'd like to workaround this issue by modifying the XML style sheet for your report without using the Compatibility option that you found in IE9, follow these steps.
    If using a default style sheet, save a copy with a different name to preserve the original file.
    Open the style sheet in a text or code editor.
    Search for node.firstChild.text by using the Find tool in your editing environment.
    Replace the line:
                var text = node.firstChild.text;
    with:
                var valueChildNode = node.selectSingleNode("Value");
         var text = "";
         if (valueChildNode)
           text = valueChildNode.text;
         else
           text = node.text;
    Search for Error:  by using the Find tool in your editing environment.
    Replace the line:
               Error: <xsl:value-of disable-output-escaping="yes" select="user:RemoveIllegalCharacters(.)"/>
    with:
               Error: <xsl:value-of disable-output-escaping="yes" select="user:RemoveIllegalCharacters(ErrorText)"/>
    Save the new version of the style sheet.
    Open TestStand and go to Configure»Report Options...
    In the Contents tab, change the style sheet to point to your updated version.
    Run a sequence that you expect to populate the Report Text.
    Open the generated XML report in IE9 and verify that the Report Text is properly populated.
    Hope this helps.
    Manooch H.
    National Instruments

  • Incorrect UTF-8 encoded date in XML reports under German Win in March (IE error)

    TestStand XML reports are marked as UTF-8 encoded. But those reports generated under Win2k German in March (written as "März" in German) cannot be displayed in the Internet Explorer because the umlaut character of the month name is not correctly UTF-8 encoded.

    Hi
    I have attached the modified modelsupport2.dll and the ReportGen_Xml.seq which fixes the problem. I also attached the modified report.c and modelsupport2.fp files.
    If you have not made changes to modelsupport2.dll and reportgen_xml.seq you can add the modified files to \Components\User\Models\TestStandModels\ folder and the TestStand engine should use the version under the user folder.
    If you have made changes to ReportGen_Xml.seq and ModelSupport2.dll then you will need to move the changes in the below files to the files under the User folder.
    FYI: If you want to create a new component or customize a TestStand component, copy the component files from the NI subdirectory to the User subdirectory before customizin
    g. This ensures that installations of newer versions of TestStand do not overwrite your customization. If you copy the component files as the basis for creating a new component, be sure to rename the files so that your customization do not conflict with the default TestStand components.
    The TestStand Engine searches for sequences and code modules using the TestStand search directory path. The default search precedence places the \Components\User directory tree before the \Components\NI directory tree. This ensures that TestStand loads the sequences and code modules that you customize instead of loading the default TestStand versions of the files.
    I hope this helps.
    Regards
    Anand Jain
    National Instruments.
    Attachments:
    ModifiedFiles.zip ‏384 KB

  • XML Report displays Parameters instead of variable name

    I would like the actual variable name to be displayed in the XML report instead of "Parameters".  I have tried many things to make this happen with no success.  Any ideas?
    Solved!
    Go to Solution.

    Hello kwkengineer,
    What type of step are you utilizing, and which version of TestStand are you using?  I tried reproducing this behavior in TestStand 2012 with LabVIEW 2012 using a LabVIEW action step, passing a cluster of boolean arrays, and the result was the following:
    The parameters were set up as follows:
    Please let me know more details about your particular step, and I will try to reproduce the problem on my side.
    Warm Regards,
    Daniel D.
    National Instruments
    Automated Test Software R&D

  • XML report generation with Stylesheet

    Hi all,
    I am creating a LabVIEW code which would be generating a XML report. Is there any way we can import this report into a xml stylesheet programatically using LabVIEW and open the report automatically after the code has been generated?
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"

    Hi Mike,
    Here are stylesheets taken from teststand. I tried using one of them by a simple VI having some String controls like Name, Age, Address etc. and logging it to an xml file using this stylesheet. Is there any format or something I am missing?
    If you have any sample VI for me, it would be of great help if you attach it.
    I am using LV 8.2
    Message Edited by Parag D on 08-25-2009 03:58 PM
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"
    Attachments:
    StyleSheets.zip ‏71 KB

  • XML report missing style sheet location

    Hi all
    I am having a issue regarding XML report generated by TestStand. I am using a custom style based heavy off NI example style sheet horizontal.xsl. The report generation works correctly on my development system however when the sequence is deployed onto runtime machine the header to the XML report is missing the style sheet location. i.e:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    Rather than:
    <?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="G:\Test\ATE4000_Production_Test_Results\T6MK6\Style_Sheets\T6MK6_PAS_Test_Sheet.xsl"?>
    If anyone has any idea what might be causing this issues i would be very greatful for any advice.
    Many Thank
    D.Barr
    Solved!
    Go to Solution.

    Thanks for the reply.
    I found the issue. I was determining the location of the style sheet using a registery key. The registry key contained double slashes which resulted in the style sheet not being found. I.e.. C:\\Test\\T6MK6_PAS_Test_Sheet.xsl. With single slashes the program worked as excepted.
    Thanks again
    D.Barr 

Maybe you are looking for