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

As system, debug/output information on JUnit XML reports should be imported to the Test Run

    XporterXMLWordPrintable

Details

    • New Feature
    • Status: Gathering Interest
    • Resolution: Unresolved
    • None
    • None
    • None
    • UNCOVERED

    Description

       As system, debug/output information on JUnit XML reports should be imported to the Test Run.

      Some frameworks/tools generate JUnit XML reports in slightly different ways; some add output/debug information on attributes, or in the context, or on some specific elements.

      Xray should import all this information and append it to the respective Test Run global comment field or the the result output message.

       

      <?xml>
      <testsuite>
        <testcase>
          <skipped message="skipped_msg"/>
      ... or ...
          <error message="error_msg" type="error_type"> 
            inner_error_msg
          </error>
      ... or ...
          <failure message="failure_msg" type="failure_type"> 
            inner_failure_msg
          </failure> 
      
      
          <system-out> testcase_stdout </system-out>
          <system-err> testcase_stderr </system-err>
        </testcase>
      
        <system-out>
          global_stdout
        </system-out>
        <system-err>
          global_stderr
        </system-err>
      </testsuite>

       

       

      Test Run global comment context output/error message 
      • <testsuite>'s inner element "<system-out>"
      • <testsuite>'s inner element "<system-err>"
      • <testcase>'s inner element "<system-out>"
      • <testcase>'s inner element "<system-out>"
      • "message" attribute on the <testcase>'s inner <failure> element
      • text content on the <testcase>'s inner <failure> element
      • "message" attribute on the <testcase>'s inner <error> element
      • text content on the <testcase>'s inner <error> element
      Example:
       
      global_stdout
      global_stderr
      Example:
       
      skipped_msg
      inner_error_msg
      failure_type
      inner_failure_msg
      testcase_stdout
      testcase_stderr

       

      Notes:

      • the <skipped>, <failure> and <error> elements on the <testcase> are exclusive
      • <system-out> and <system-err> are optional

       

       References:

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: