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~

Similar Messages

  • Problem with Report Generation in TestStand 3.0

    While using On-the-Fly Test Report Generation capabilities in TestStand 3.0, the PC become very sluggish and occasionally there are error messages containing an error code of -17000 and the statment, "Out of Memory". The error dialog usually appears while attempting to run the "reportgen_html.seq" file. Do you have any suggestions as to how we may correct this problem?

    Hi
    The test which you trying to run could potentially be leaking memory. I would suggest that you do the following.
    1. Run the tests without report generation and result collection. Monitor the memory usage of your test using either taskinfo2000 or PerfMon and monitor your application.
    To turn off result collection go the configure-> station options-> general tab -> Check disable result recording for all Sequences.
    To turn off report generation -> configure-> report options-> and check disable report generation
    If you tests still give a out of memory error then potentially the tests are leaking memory. Also if you see an increase in memory usage when running your tests then you could potentially be leaking memory in the tests
    If your application
    does not give errors then I would turn on result collection and keep report generation disabled and check if you get errors.
    If you get memory errors then you just might need more RAM to store all the results.
    If you still do not get any errors then I would turn on report generation and result collection and set the report to txt. If you still do not get any errors.
    If you get errors then you might just need more memory to generate the report and display it.
    I hope this help
    Regards

  • 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 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 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~

  • 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

  • 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 

  • 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

  • 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

  • Visual Studio TestStand API runtime enable/disable XML reporting file creation

    I am looking for a Visual Studio C# solution to selectively disable creation of the report generation XML file using the TestStand API.
    These XML files are useful for active troubleshooting for technicians, but wind up cluttering important directories with useless information most of the time.
    I am aware that the XML file creation can be disabled through the TestStand Sequence Editor menu item Configure | Result Processing | Output Name Report | Enabled unchecked option.
    This is helpful, but:
    1. I have not found a way to check-uncheck this feature at runtime.
    2. I do not believe that this would be an effective solution for my instal-less Base Deployment Paradigm.
    Any help or ideas would be appreciated!
    Solved!
    Go to Solution.

    Thank you for the quick and concise response James_Grey!
    This is useful, complete, and implementable but not exactly what I was hoping for.
    I was hoping to be able to enable/disable the XML file creation for the currently executing instance of the engine prior to sequence start.
    I would rather not disable reporting through a configuration file that would effectively disable it for all uses of TestStand until it was re-enabled again.
    Are my expectations unrealistic?
    Does anyone have any idea how creation of the XML file can be enabled/disabled for an active instance of the engine prior to sequence start through the API without altering the file based configuration of TestStand?
    I have seen some postings around 2008 that indicate this can be done, but I was unsuccessful implementing those solutions in TestStand 2013.

  • 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

  • LabVIEW VI with Report Generation Toolkit elements in a TestStand sequence does not run with a LabVIEW 8.5 Run-Time Engine

    Hi all,
    I am using LabVIEW 8.5.1 and TestStand 4.1. I have done a TestStand sequence with a VI in it, which uses Report Generation Toolkit elements. On my machine I am using LabVIEW and TestStand with a Development System license. On the other machine I am using TestStand with a Base Deployment license and I have chosen the LabVIEW 8.5 Run-Time Engine in the Adapter Configuration. Everything is running well except of this VI with Report Generation Toolkit elements. The error message is showing that the VI is not executable. It works well only after I have installed LabVIEW with an Evaluation license and chosen LabVIEW 8.5 Development System in the Adapter Configuration.
    I have found other posts and a document in the KnowledgeBase with a similar problem: http://digital.ni.com/public.nsf/allkb/8A0E6274D9B​D7B1986256F62006AD402?OpenDocument But I am not using EXE files in my sequence, so I don't know how to solve mine. Anybody has an idea?
    Solved!
    Go to Solution.

    Hello guys,
    thank you very much for your answers!
    @Ruediger:
    I tried to follow the instruction for Method 2 in the mentioned document: http://digital.ni.com/public.nsf/allkb/F3DC40A6E3F​3B25B862570AD005D1D3D?OpenDocument, but the steps on my machine are different starting from step 4. After I click "Continue..." in step 3, I dont get a window, the system just makes a new folder with the same VI. 
    To be honest, I am new to LabVIEW and have some difficulties at this time. What I understood from your reply is, that I need to make a LLB-File, where the files from Report Generation Toolkit are in!?
    @GovBob:
    I was following the instruction in the document: http://digital.ni.com/public.nsf/allkb/9E00E7EFE06​35E678625734600779EFE, but it wasnt working. Can you please tell me how I can check if the VI Server is installed and running on the machine?
    I am using LabVIEW 8.5.1 and TestStand 4.1 on my machine, on the deploy machine there is TestStand 4.1.1. The version of my Report Generation Toolkit is 1.1.2.
    Kind regards, Roman

  • Xml parsing and report generation probs

    Hello everyone,
    I am facing with a peculiar problem.
    I have an xml which contains special characters like �( cent) . So I parse it before i send it to the DOM parser. BufferedReader br = new BufferedReader(new InputStreamReader(inputFileName,"ISO-8859-1"));
    and i have a function which replaces the cent with #xA2; .After i replace the special chars , i pass it to the parse method and i have some classes which update the database.the whole process works fine.
    Now I have a report generation where i generate an HTML passing the string after the values are updated in the DB . So when i pass the string , and replace #xA2 with cent symbol, it is being interrupted as '?' in the windows and unix environment
    This is something to do with the encoding.But my encoding is ISO-8859-1 as mentioned
    Can you please help me out with this prob
    Regards
    KV

    I have some sympathy with you because I had problems with the cent sign in the XML world too. But not much... you have XML parsing going on, you're writing to a database, you're generating HTML, you have a manual hack for the cent sign. One or more of these things is causing you a problem. Do not try to test them all at once, like you are doing. Test only one thing at a time.

  • Teststand Report generation doc

    Hi Guys,
    I'm looking into TestStand reports right now, but I have to admit that I'm a little bit lost...
    I would like to get an easy "manual" on how to edit the reports so I can get my own formating in the report...
    For example, I would like to present my test results like this
    Description of test (name)    ||    Low limit    ||   Measurement    ||     High Limit     ||    Pass/Fail.
    This would be the case for every test step.
    Also , I would like to have a customized header with a logo, and some additional Information like operator name, SN, etc
    A solution I was thinking about was to send all my data back in LabVIEW and generate the report from there, which is quite easy... I found a way to get back part of my data, but unfortunately, the NumericLimitTest steps don' return the Result... (the function I used is on this page http://forums.ni.com/ni/board/message?board.id=330&message.id=1311&requireLogin=False) >> TestStand-Labview-Resultlist.vi is the one I used.
    Could you help me on this?
    Thanks a lot
    Matthieu

    Hi Matthieu,
    Here is a Developer Zone article that should help get your starting with understanding how report generation works: Report Generation Explained .
    See the following knowledge base article for information about logging data of a step: How do I Modify a Step Type to Log Data into a Report?
    If you are using an HTML report, please see the following knowledge base article for information about how to customize your header information: Modifying HTML Report Headers to Include Custom Information in TestStand .
    This should get you started with reporting in TestStand.  I think that you will find that TestStand is better suited for reporting as you become more familiar with it.
    Jessica
    National Instruments
    Product Support Engineer

Maybe you are looking for

  • How to include not due invoices in payment run

    Hi Gurus, Good day. Kindly advice how we can include invoices that are not due in the payment run to avail discounts. Thanks in advance.

  • Sequence finished - PAL iDVD - Still Photos Pixelated

    I have finished a sequence which contains video and stills taken be digital cameras. I use iPhotos to sort the photos. When I look at the output either in FCE canvas or after I burned an iDVD (and watched it thru my PowerBook) the still photos look v

  • Can I import songs from two different Macs using home sharing?

    I have two MacBooks and a IMAC G5. I set up home sharing but can't seem to import songs from PC one to another. I was able to do it but now 2 of my PCs are using Yosemite. I want to move my music from, Macbook, to iPAD, to iPhone to iPOD. Any help wi

  • Approver not availabale for approving the leave rquest

    Hi Guys, I Had One problem , In the leave request work flow , When a   leave request is raised , if the approver is not  available i want to approve that one with out his notification in back ground, for this one is there any std. program or any anot

  • Way to count commits and updates in a procedure

    Gday, I want to trace a procedure at runtime to see how many updates and commits are being made when it runs. What is the best way to accomplish this? Cheers