Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HP Run Results Viewer 11 don't substitute the data from an external xml file.
#1
Not Solved
HP Run Results Viewer 11 don't substitute the data from an external xml file. And just freezes and closes in the output in a template XSL.
In the MS VS 10 debugger XSLT runs correctly and produces the desired text.
When debugging, if an error is hovering RRV
Code:
System.FormatException was unhandled
Message = Input string was not in a correct format.
Source = mscorlib
StackTrace:
in System.Number.StringToNumber (String str, NumberStyles options, NumberBuffer & number, NumberFormatInfo info, Boolean parseDecimal)
in System.Number.ParseInt32 (String s, NumberStyles style, NumberFormatInfo info)
in ReportReader.XmlLoaderBase `1.GetXmlLineFromException (Exception inner)
in ReportReader.XmlLoaderBase `1.LoadXml (String pathToXmlFile)
in ReportReader.ExportReport.ConverterBase.DoConvert ()
in System.Threading.ThreadHelper.ThreadStart_Context (Object state)
at System.Threading.ExecutionContext.Run (ExecutionContext executionContext, ContextCallback callback, Object state)
in System.Threading.ThreadHelper.ThreadStart ()
InnerException:

In an external xml file is only two lines:
Code:
<? Xml version = "1.0" encoding = "windows-1251"?>
<organization> apraraprp1111 </ organization>


Here are the lines that need to substitute the text between the tags in a <organization> template result
Code:
<! [CDATA [for a customer: "]]>
<xsl:for-each select="document('C:\***\BIN\company.xml')">
<xsl:value-of select="organization"/>
</xsl: for-each>
<! [CDATA ["]]>

In QTP 9 this line is working correctly, and substituted the name of the template.
If you remove "<xsl:for-each..." lines,RRV run correctly, but the necessary text will not be.
I tried to change the encoding in the xml windows-1251 to UTF. It didn't help.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Code to run all QTP scripts and see all results Pkapoor 11 17,827 08-15-2017, 02:58 AM
Last Post: Ravi
  dtLocalSheet empty even though excel file contains data cantorre 2 2,428 05-10-2017, 12:47 PM
Last Post: vidhi
  Grab multiple line data from log file haziqwebs 0 1,792 10-19-2016, 01:28 PM
Last Post: haziqwebs
  Report Viewer showing hundreds of WebElement.Exists? themoon 1 2,335 03-09-2016, 02:43 PM
Last Post: vinod123
  qtp script for updating values in xml file automation2012 3 11,497 11-30-2015, 11:07 AM
Last Post: Lavanya N

Forum Jump:


Users browsing this thread: 1 Guest(s)