Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-4637

results from JUnit XML reports should include additional information on failure/error

    XporterXMLWordPrintable

Details

    • Improvement
    • Status: Waiting Approval
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • XRAY 2020 Sprint 7
    • UNCOVERED

    Description

      Currently, only the text in the <failure> message is processed/imported. The "message" attribute on the <failure> element should also be imported.

      The same applies for the <error> element.

       

      https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd

       

      Examples:

          <testcase classname='XCUITest101UITests.XCUITest101UITests' name='testRecorded'>
      
      
            <failure message='Failed to get matching snapshot: Multiple matching elements found for &lt;XCUIElementQuery: 0x60000380eda0&gt;.'>XCUITest101UITests.swift:25</failure>
      
      
          </testcase>

       

        <testcase name="CanAddNumbers" classname="com.xpand.java.CalcTest" time="0.005">
      
      
          <failure message="&#10;Expected: is &lt;2&gt;&#10;     but: was &lt;0&gt;" type="java.lang.AssertionError"><![CDATA[java.lang.AssertionError:
      
      
       
      
      
      Expected: is <2>
      
      
           but: was <0>
      
      
              at com.xpand.java.CalcTest.CanAddNumbers(CalcTest.java:26)
      
      
      ]]></failure>
      
      
        </testcase>

       

       

      Attachments

        Issue Links

          Activity

            People

              dpca Diamantino Campos
              smsf Sergio Freire
              Votes:
              7 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: