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

Similar Messages

  • How can I modify xml report body content ?

    I am trying to modify the Teststand XML report to display the actual datasource name instead of "numeric" when I used a Numeric Limit step. In other words, I want to be able to rename the "numeric" label with something of my choice.
    I saw some examples on report modifications, but nothing to the point.
    Thanks,
    Sam

    Hi,
    Is the following link any help
    http://zone.ni.com/reference/en-XX/help/370052H-01​/TOC39.htm
    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

  • Modify Header in XML report

    There is an example in the users manual to modify the report header by using a callback, Chapter 10-12 Adding to a Report Using Callbacks. Will this work for xml reports in TS 3.1? I don't have any experience with xml, but need to add text and possibly an image to the header of a report.  My attempts so far do not generate any errors, but do not output anything to the report. I can break on the statement in the callback so I know it is called as the report is generated.

    XML is a language designed to contain data with no information on how to present it.  You can open the XML report in notepad to see what the raw XML data looks like.  You'll notice it is far different than how you view the report.  To make the data more presentable, a style sheet (XSL) is used to translate the data.  This converts XML data into a HTML document to present the data in a more user-friendly way.  The style sheets are completely customizable.  If you wish to display a picture, you would need to modify the style sheet.  You also may need to modify the header of the XML document to describe what picture should be displayed.  These tasks are not trivial for beginners in XML.
    For more information on XML, i would recommend http://www.w3.org/XML/.
    Allen P.
    NI

  • Modifying the header of an xml report

    I am looking to add some additional information to the header of horozontal.xsl but am struggling to find the right format. At present i have rewritten the modifyreportheader callback. It works fine for text but i cant get it to work for xml. Any suggestions? Many thanks in advance
    Tony 
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

    You can refer to the Adding Images and Text to Report Headers and Footers topic in the NI TestStand Help for information about changing the header for an XML report. 
    Callie Jones
    TestStand Documentation Team

  • XML Report in Arabic login in Oracle apps

    Hi,
    I have created a XML report in Oracle apps, the data is coming properly from english login.
    But when we login from Arabic Login then report does not show any data.
    The data does not come even after hard coding the values.
    Any clue for the issue..
    Below is the main query in the report.
    SELECT
    PAC1.PAYROLL_ID ,
    PAC1.PAYROLL_ACTION_ID ,
    HR_PAYROLLS.DISPLAY_PERIOD_NAME(PAC1.PAYROLL_ACTION_ID) PERIOD_NAME,
    PRO.PAYROLL_NAME
    ,TO_CHAR(SYSDATE,'DD-MM-YYYY') REPORT_DATE1
    FROM pay_payrolls_f pro,
    pay_payroll_actions pac1
    ,PER_TIME_PERIODS_V V
    WHERE pac1.payroll_id = pro.payroll_id (+)
    AND pac1.effective_date BETWEEN pro.effective_start_date (+) AND pro.effective_end_date (+)
    AND DECODE( PAC1.ACTION_TYPE, 'H', NVL(pay_payroll_actions_pkg.decode_cheque_type(pac1.business_group_id), HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE', PAC1.ACTION_TYPE)), 'T', DECODE(instrb(PAC1.LEGISLATIVE_PARAMETERS,'SLA_MODE=Y'), 0, HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'GL'), NULL, HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'GL'), HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'SLA')) , HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE', PAC1.ACTION_TYPE)) = 'Run'
    AND PAC1.Payroll_id = 61--:P_PAYROLL_ID
    AND PAC1.time_period_id = V.time_period_id
    AND to_char(v.start_date,'MM-YYYY') = '01-2013'--:P_MONTH

    in the next time use EBS related forums - https://forums.oracle.com/forums/category.jspa?categoryID=3
    BTW
    looks like that for Arabic language you haven't some data
    in your main query you have PER_TIME_PERIODS_V which based on HR_LOOKUPS which depend on session language
    CREATE OR REPLACE VIEW HR_LOOKUPS
    where FLV.LANGUAGE = userenv('LANG')
    ...so check data in HR_LOOKUPS for Arabic language
    you can check it by query without PER_TIME_PERIODS_V
    also you can modify your main query like
    select t.PAYROLL_ID,
           t.PAYROLL_ACTION_ID,
           t.PERIOD_NAME,
           t.PAYROLL_NAME,
           t.REPORT_DATE1
      from (SELECT PAC1.PAYROLL_ID,
                   PAC1.PAYROLL_ACTION_ID,
                   HR_PAYROLLS.DISPLAY_PERIOD_NAME(PAC1.PAYROLL_ACTION_ID) PERIOD_NAME,
                   PRO.PAYROLL_NAME,
                   TO_CHAR(SYSDATE, 'DD-MM-YYYY') REPORT_DATE1,
                   PAC1.time_period_id
              FROM pay_payrolls_f pro, pay_payroll_actions pac1
             WHERE pac1.payroll_id = pro.payroll_id(+)
               AND pac1.effective_date BETWEEN pro.effective_start_date(+) AND
                   pro.effective_end_date(+)
               AND DECODE(PAC1.ACTION_TYPE,
                          'H',
                          NVL(pay_payroll_actions_pkg.decode_cheque_type(pac1.business_group_id),
                              HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE',
                                                       PAC1.ACTION_TYPE)),
                          'T',
                          DECODE(instrb(PAC1.LEGISLATIVE_PARAMETERS, 'SLA_MODE=Y'),
                                 0,
                                 HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
                                                          'GL'),
                                 NULL,
                                 HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
                                                          'GL'),
                                 HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
                                                          'SLA')),
                          HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE',
                                                   PAC1.ACTION_TYPE)) = 'Run'
               AND PAC1.Payroll_id = 61 --:P_PAYROLL_ID
            ) t
      left outer join PER_TIME_PERIODS_V V
        on (t.time_period_id = V.time_period_id AND
           to_char(v.start_date, 'MM-YYYY') = '01-2013' --:P_MONTH
           )

  • Data source for Deposit Advice (XML) and Live CheckWrite (XML) reports

    Hello All,
    We need to customize the Deposit Advice (XML) and Live Check Write(XML) reports to accomodate a few business requirements. We already have customizations for these reports in non-XML versions. For Ex: USPAYPST.rdf for Deposit Advice report. As these non-XML RDF reports are going to be unsupported by Oracle soon, we need to customize the XML versions of these report available in R12.1.3.
    As these reports are kicked off by the PYUGEN spawned program, therefore I need information on the data source for these reports as soon as possible.
    Looking forward to your prompt help.
    Thanks,
    Rahul

    Now, I have anew problem here. I modified the USPAYPST.rdf report for Deposit Advice and then changed concurrent program output to XML from Text.
    I attached a RTF template to the concurrent program to have the output in XML.
    When I run Deposit Invoice Report from the SRS window, it finishes off normally and log file says the number of records processed but no output file is generated.
    I also tried looking into the XML generated through View XMl and there too no output file is generated.
    I am confused if the Deposit Advice program can only generate Text output. As PYUGEN is the executable for this report, I have no idea if XML file can even be generated.
    All pointers to this issue are welcome.
    Thanks,
    Rahul

  • 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

  • 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

  • Modify UUT report file name

    Hello,
    I use TesStand 3.1 in Batchmode with 4 Testsockets and generate a XML Testreport for every UUT with the serial number in the file name.
    I leave the "Enter UUT Serial Number" dialog boxes at the begin empty.
    After that i read out the Serial Number of my UUTs at the runtime via CAN and use the "PostUUT-Callback" to modify the "Parameters.UUT.SerialNumber".
    Because of that the UUT Serial Number appears in the Report Header.
    But the report filename is always "Report[NO_UUT_SERIAL_NUM0][date][time].xml".
    Is it possible to modify the "UUT Serial Number" in the Report File Name, too?
    Thanx for your answers!
    Greetz ALIEN

    We modify the report name to include error count, Model, build, etc. but it requires that the Report be complete at that point (file no longer locked by TestStand). 
    In order to do this, you'll need to create a Sequence (with no Process Model) to call the test sequence using Subsequence call with the "Run Sequence in a New Execution" selected in the "Specify Module", Multithreading selection ring.
    There may be other ways to do what you're attempting, but this gives you freedom to rename the file. 
    Mike

  • 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

  • Modifying XML to run a batch/burst on a Book With Multiple Connections

    Figured I'd use the ENTIRE subject line.
    Quick: I have a book that has multiple reports with multiple data connections. I wanted to create a batch and have it burst for a certain POV. Unfortunately because there are multiple data connections, it will only modify one report POV, not all associated with the book.
    I exported the batch file and modified the XML file and called <Batch_POV_OVERRIDE> twice within the <BURSTING_OPTIONS> tags but it reduced performance significantly (1 minute to 12 minutes a report)
    Question is, is there a better way to do this? I know this really relates to Hyperion BI Applications, but since this is in XML, I was hoping someone with experience in both could POSSIBLY help me.
    Thanks in advance!

    Kolbjxrn,
    Please post this question on http://forums.oracle.com/forums/forum.jsp?id=486963 for best response.
    Ashesh Parekh
    Oracle9iAS Product Management

  • Database filling from XML report of TS3

    Does NI have a tool to fill-up an Oracle database from a XML report of TS3? The idea is to fill up the database during the night.

    I can't answer your question about NI having a tool, but we are facing a similar problem so I will share some of our ideas.
    1. You could write your own XML parser that would read the file and load it into the database. Since it is a standard format, you should be able to find software that will make the parsing relatively easy.
    2. You could load the file directly into an Oracle 9i database, passing it as a LOB parameter. You would need to write the code for loading the file (examples can be found on the internet) and you would probably need an Oracle expert to implement the XML parsing on the database side.
    3. You could save the results container as a file, then later load the file into TestStand and use the standard database logging sequence. We tried a
    dding the results container to StationGlobals, but have had problems saving all the data to disk.
    4. You could modify the text report so that it creates the SQL statements required to enter your data into the database. Then the file can be loaded into the database as "dynamic SQL".
    5. You could log the data to a local database, then later load it into the main database, as suggested by Dennis (http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000E13B0000&UCATEGORY_0=_8_&UCATEGORY_S=0).

  • Print Images in XML Report

    Hi,
    I do have a requirement to print digital signature in a Quote, the signature is been stored as a picture (longraw datatype per_images table) in HRMS Tables
    HRMS Responsibility -> people -> Enter and Maintain -> Picture, here we will upload the signature of a person and this need be printed in XML Report.
    In the Report Builder if we change the ‘file format’ to ‘Image’ we are able to display the image , but when we are register in APPS, we not able to get the image, even XML tags are not been generated.
    Regards,
    Satish.

    Here...this should help !
    BLOB image in XML Publisher

Maybe you are looking for

  • ITunes 9 not loading on Windows 7 64 bit

    I have iTunes 9.0.2 for Windows 64 installed on my laptop. It was working fine, but now it isn't loading. I have searched and tried several things so far. I've uninstalled everything apple and reinstalled it. I removed all iTunes folders and rebooted

  • Line items duplicated in KE24

    Hi, I have activated costing based profitability analysis and when I create a billing document the system generates a PA segment. It is correct but when I display it in KE24 it appears twice, one with the currency type B0 - Operating concern currency

  • Home nw w/ two distinct wireless signals

    I've got a AEBS (gigabit) and and WRT54G. I've got the WRT54G set up as a router (not gateway) device, attached to the AEBS, broadcasting a G-only signal (unique SSID to reflect this). I'm doing this so I can set up the AEBS for N-Only access (again,

  • Installing Sun Messaging Server on DMZ Architecture

    Hello, we want to install Sun Messaging Server in a DMZ Architecture and I need know if it is possible to install the Messaging Server on the private network to protect data and users, and a pop agent on the DMZ which allows the public to access to m

  • Hit count to high?

    Has anyone seen this problem: I search for the term "osha" using the default search.jsp my datasource only has 13,000 records yet my result on the screen show 90,680. I can see that rst.estimateHitCount() is called to return the results. Yet when I r