Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated

Archived: Why Can't I See Report Text in Internet Explorer 9?

This document has been archived and is no longer updated by National Instruments



Primary Software:
Primary Software Version: 3.5
Primary Software Fixed Version: 2010 SP1
Secondary Software: N/A

Problem:
If I open a TestStand generated XML report in Internet Explorer 9 (IE9), the Report Text for steps is blank even though the raw XML file contains Report Text data.



If I generate the same report in TestStand and view it in the TestStand ReportView control, the Report Text is properly populated for all steps. 



If I open the XML report in a previous, supported version of IE, the Report Text is properly populated.  Is there any way to make the Report Text show up properly in IE9?

Solution:
This issue is fixed in TestStand 2010 SP1 and newer versions.

Due to some changes in how XML is implemented in IE9, calling node.firstChild.text; returns empty text in IE9 even if the node has a value.  Since the TestStand XML style sheets call node.firstChild.text to populate the Report Text, you will need to change this call in the XML style sheet you are using to correct the behavior for IE9.

To edit the style sheet, follow these steps:
  1. If using a default style sheet, save a copy with a different name to preserve the original file.
  2. Open the style sheet in a text or code editor.
  3. Search for node.firstChild.text by using the Find tool in your editing environment.
  4. 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;


  5. Search for Error:  by using the Find tool in your editing environment.
  6. 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)"/>

  7. Save the new version of the style sheet.
  8. Open TestStand and go to Configure»Result Processing and select Options for Report (Configure»Report Options in TestStand 2010 and previous)
  9. In the Contents tab, change the style sheet to point to your updated version.
  10. Run a sequence that you expect to populate the Report Text.
  11. Open the generated XML report in IE9 and verify that the Report Text is properly populated.


Related Links:
Developer Zone Tutorial: Best Practices for NI TestStand Report Generation and Customization
KnowledgeBase 4SB7G6CK : TestStand XML Report Customization

Attachments:





Report Date: 05/13/2011
Last Updated: 03/04/2013
Document ID: 5LCFA2XP

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit