Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51604

XPathExeption when parsing QtTestLib Reports when a Test contains multiple Incidents

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • xunit-plugin
    • Jenkins V2.125
      xUnit plugin V2.0.0
      Windows Server 2008 R2 Standard, SP1
      QtTest 4.8.7

      I have an QtTest Report which has multiple incident of type fail within one TestFunction.
      The Exception is
      [xUnit] [ERROR] - Conversion error Error to convert the input XML document
      ERROR: Step ‘Publish xUnit test result report’ aborted due to exception:
      hudson.remoting.ProxyException: net.sf.saxon.trans.XPathException: A sequence of more than one item is not allowed as the first argument of concat()

      When the transformation handle the fail (ln 97) the variable "file" will contain an Array. This is not supported by the concat in ln 109.

      Attatched a Report which cause the error and a modified Transformation which will prevent the error.

            nfalco Nikolas Falco
            br_michael Michael Wietzke
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: