NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Internet Explorer 9 doesn't display XML Report Text

Solved!
Go to solution

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?

 

 

0 Kudos
Message 1 of 9
(19,056 Views)

The only thing I can think of offhand is that the local file versus the network file will probably fall into different "security zones" and this is changing how the stylesheet is executing. Are you only seeing this with Report Text? What about other types of additional results (e.g., numerics, booleans)? FWIW, I've never seen this on any of my XML reports in IE9.

 

How do ATML reports look? I would expect that same, but they're also an XML schema utilizing a stylesheet, so it'd be interesting to see if those are behaving or not.

0 Kudos
Message 2 of 9
(19,049 Views)

@asbo wrote:

The only thing I can think of offhand is that the local file versus the network file will probably fall into different "security zones" and this is changing how the stylesheet is executing. Are you only seeing this with Report Text? What about other types of additional results (e.g., numerics, booleans)? FWIW, I've never seen this on any of my XML reports in IE9.

 

How do ATML reports look? I would expect that same, but they're also an XML schema utilizing a stylesheet, so it'd be interesting to see if those are behaving or not.


So far, regular and additional results are showing up fine.

The ATML is displaying the report text but as you said the XML schema is different.

0 Kudos
Message 3 of 9
(19,041 Views)

I found that changing the compatibility mode of IE9 will work around this issue.  I'd sure like to know whats not compatible...

 

 

0 Kudos
Message 4 of 9
(19,037 Views)

Hmm. Interesting, but that doesn't explain why viewing it over the network would fix the viewing issue. Can you upload a copy of that report?

0 Kudos
Message 5 of 9
(19,034 Views)

Actually it does.  The check box just above is set by default and it states "Display intranet sites in Compatibility View".  I unchecked that box and the other box and verified that the report text will not display for both the local and network drive file.

0 Kudos
Message 6 of 9
(19,031 Views)

Great point! I got excited by the red circle and didn't read much else 😉

0 Kudos
Message 7 of 9
(19,028 Views)
Solution
Accepted by topic author paulmw

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.

 

  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»Report Options...
  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.

Hope this helps.

Manooch H.
National Instruments
Message 8 of 9
(19,023 Views)

Thank you Manooch_H. Your code really works!

0 Kudos
Message 9 of 9
(17,877 Views)