title: Jenkins test result parsing
body: <p>I've got a Jenkins with a lot of jobs. These jobs do tests and produce test outputs in XML. Those XML test results look - pretty standard - like this: </p>
  
  <pre><code>&lt;testsuites name="testsuitesname"&gt;
    &lt;testsuite name="testsuitename"&gt;
      &lt;testcase classname="classname" name="testcasename"&gt;
        blabla
      &lt;/testcase&gt;
    &lt;/testsuite&gt;
  &lt;/testsuites&gt;
  </code></pre>
  
  <p>When you use the <em>Post-build action</em> <em>Publish JUnit test result report</em> (found on the configuration page of a job) the structure of those published results of a build (in Jenkins) will be like this: </p>
  
  <ol>
  <li><code>&lt;root&gt;</code> (headline: package)</li>
  <li><code>&lt;classname&gt;</code> (headline: class)</li>
  <li><code>&lt;testcasename&gt;</code> (headline: test name)</li>
  </ol>
  
  <p>There is no <code>&lt;testsuitesname&gt;</code> and no <code>&lt;testsuitename&gt;</code> in this hierarchy like it is in the XML files. </p>
  
  <p>Is there any option to either:</p>
  
  <ol>
  <li><p>add the <code>&lt;testsuitesname&gt;</code> and <code>&lt;testsuitename&gt;</code> to the hierarchy in the test result publishing hierarchy of a Jenkins build:</p>
  
  <ol>
  <li>(<code>&lt;root&gt;</code>)</li>
  <li><code>&lt;testsuitesname&gt;</code></li>
  <li><code>&lt;testsuitename&gt;</code></li>
  <li><code>&lt;classname&gt;</code></li>
  <li><code>&lt;testclassname&gt;</code></li>
  </ol></li>
  </ol>
  
  <p>or</p>
  
  <ol start="2">
  <li>somehow add more hierarchy to the <code>&lt;testcase&gt;</code> tag?</li>
  </ol>
  
  <p>Background: Because my test results are quite large (big amount) I want to add more hierarchy/structure to it and not just two levels (like it is now) to gain more overview over all of those results. </p>
  
  <p>Can anybody help me or had a similar problem? </p>
  
  <p>Best</p>
  
  <p>Andy</p>