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~

Similar Messages

  • 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

  • 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

  • XML Report Generation in TestStand 4.1.1

    I'm a fairly new user with TestStand, though I've been working with Labview for a few years now.  I've written a test sequence that will be replacing a previous implementation that was done in VisualBasic.
    The problem I'm running into now, though, is in the test reporting.  I want to use the XML format for the reports, but I cannot seem to figure out how to customize what data is printed.  I want to print the failures, and then there are some global variables that I would like to see printed in the header.  I've seen the XML tutorial for TestStand 4.2, but that doesn't work for 4.1.  Is there anything similar for 4.1?  
    Can anyone provide any resources for how to go about customizing the XML stylesheet for the report generation in 4.1?
    Thanks!

    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~

  • XML Report displayed error

    Hello,
    Had searched here but still couldn't found the solution. Is there anything to setup to display Oracle XML seeded report? It's just that I ran an Account Payables report, which is Oracle's default, and it displayed just the xml code. Thx.

    Hi,
    Yes I'd gone through that following notes but it explained if the Concurrent Request completed normal or warning while in my case it's Completed Normal but when I viewed the output, it gave me only the xml code in the browser and not the result. All I get was something like this :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <AP_PREPAY_TRAK_REP_TURK>
    <P_ORG_ID>81</P_ORG_ID>
    <P_INVOICE_FROM>2008/11/01 00:00:00</P_INVOICE_FROM>
    <P_INVOICE_TO>2008/11/05 00:00:00</P_INVOICE_TO>
    <P_CURRENCY>IDR</P_CURRENCY>
    <LIST_G_OPERATING_UNIT />
    <T_S_CLOSED_AMT>0</T_S_CLOSED_AMT>
    <NO_DATA>0</NO_DATA>
    <INVOICE_FROM>01-NOV-08</INVOICE_FROM>
    <INVOICE_TO>05-NOV-08</INVOICE_TO>
    </AP_PREPAY_TRAK_REP_TURK>

  • 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

  • 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 

  • Modify xml reports

    I would like to modify the xml report files of TestStand in the following way:
    < p>
    < xml version="1.0" encoding=UTF-8"?>
    < report>
    < product_number>xxxx< /product_number>
    < serial_number>xxxxx< /serial_number>
    < spec_info>< /spec_info>
    < options>< /options>
    < workstation>< /workstation>
    < operator>< /operator>
    < test>
    < name>< /name>
    < /test>
    < /report>
    < /p>
    So the xml file looks totally different like the xml files produced by TestStand.
    Is there any way to make this change - and how could it be done?
    Thanks in advance
    nicole e.Message Edited by Support on 06-17-2005 10:21 AM

    Nicole -
    It all depends as to whether you want to just update the GetXML calls or you want to control the format of the entire XML file.
    Internally GetXML recursively traverses a generic property object structure by going to its children and so on. It generates a list of strings that are eventually all concatinated together before returning.
    The default XML report schema contains the output from multiple calls to a GetXML all concatinated together. Separate calls are made to generate XML for various pieces of typed data like UUT, ReportOptions, StartTime, StartDate, StationInfo, and the result from the MainSequence call step in the Single Pass or the Test UUTs sequence.
    Since all the above components are built by the GetXML stream and you wish to simplify the entire schema, trying to make a single change to replace the GetXML calls in the XML sequence might not be possible.
    If you are only going to be doing post UUT results and not on-the-fly, you could write your own routine that replaces the Test Report sequence in the SequentialModel.seq. This sequence generates the report for a single UUT. You may want to consider writing your own routine using the parameters to the sequence which include UUT, ReportOptions, StartTime, StartDate, StationInfo, and the main sequence results. This way you can create the schema that you want.
    Scott Richardson
    National Instruments

  • 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

  • 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

  • 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

  • XML report output displays xml code instead of pdf

    Hi,
    My Release is R12.1.1, An xml report whose output is set as pdf. when running this report output is coming as xml code instead of pdf
    another xml report ouput is coming in word instead of pdf
    is there any additional settings required to display in pdf format
    eventhough i configured pasta.csg & ixlib.cfg files
    Thanks,
    Alig
    Edited by: user12257829 on Jun 2, 2010 11:41 PM
    Edited by: user12257829 on Jun 2, 2010 11:41 PM

    Hi,
    Helios
    Even i tried both MOS documents u have referenced, as both reports compeleting normally without any error
    one thing i want to know can application use the same pasta.cfg file for pdf and text format
    as i have a single pasta.cfg configured
    Thanks
    Alig
    Edited by: user12257829 on Jun 3, 2010 1:18 AM
    Edited by: user12257829 on Jun 3, 2010 1:18 AM

  • How to display image stored in DB in XML report.

    Hi,
    I am trying to display an Image uploaded by custom Form's attachment in XML report.
    Can someone please share the steps or suggest a link...
    Thanks in advance.
    Madhav

    Check this out:
    http://blogs.oracle.com/xmlpublisher/2006/05/inserting_blobs_into_your_repo.html

  • 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

  • I want to display the number of Passed / failed tests in Testtand xml report , please help me

    Hi, I want to display the number of Passed / failed tests in Testtand xml report , please help me.
    My requirement is later i should be able to display these number of passed/failed test in report header too.
    Solved!
    Go to Solution.

    I have attached a sequence to give you an idea of how to get the Result count (I didn't check it's working ), I have used "SequenceFilePostResultListEntry" callback to calculate the Result Count,
    and the Result Count is passed to the "ModifyReportHeader" through File Globals,  where you can edit the XML file to show it in the Repot (follow the link in my previous post).
    Hope this helps
    AshwiN,
    Attachments:
    Get Result Count.seq ‏8 KB

Maybe you are looking for