Uploaded image for project: 'Operator Ecosystem'
  1. Operator Ecosystem
  2. OPECO-1891

Scorecard: xunit adjustments - add nested tags and attributes

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • None
    • OSDK Sprint 64, OSDK Sprint 65

      The first phase of XML output was added to scorecard, there were some attributes that are needed to support importing into polarion.

      According to the polarion documentation: https://almdemo.polarion.com/polarion/help/index.jsp?topic=%2Fcom.polarion.xray.doc.user%2Fguide%2Fxid1603675.html

      Here is an example of an xUnit file showing only the tags and attributes read by Polarion. There follows a screenshot of the result of importing the example file.

      <?xml version="1.0" encoding="UTF-8"?>
      <!-- This example shows only tags, attributes and content which is currently read by Polarion
           See http://windyroad.org/dl/Open%20Source/JUnit.xsd --><testsuites>
          <!--Name of the root tag does not matter, but it must not be same as the ones below -->
          
          <testsuite timestamp="2011-10-17T23:05:06">
              <!-- testsuite tags can be nested, timestamp is not required and format is "yyyy-MM-dd'T'HH:mm:ssZ" -->
              <testsuite>
                  <testcase name="someMethod" classname="SomeClass" time="0.285"/>
                  <!-- test case id is "SomeClass.someMethod", time is not required and is in seconds -->
              </testsuite>
              
              <testcase name="otherMethod" classname="SomeClass" time="0.001">
                  <failure message="failure message" type="package.Exception">
                      <!-- message and type are not required, all text content is added to the created defect -->
                      Failure details
                  </failure>
              </testcase>
              
              <testcase name="otherMethod" classname="OtherClass" time="0.002">
                  <error message="error message" type="package.OtherException">
                      Error Details
                  </error>
              </testcase>
          </testsuite>
      </testsuites>

              theishshah Ish Shah (Inactive)
              rhn-engineering-jesusr Jesus Rodriguez (Inactive)
              Cuiping Huo Cuiping Huo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: