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

Same attachment can appear multiple times on "Test Result" page

    Details

    • Similar Issues:

      Description

      In the JUnit XML report, if the [[ATTACHMENT|/path/to/file]] appears in the <system-out> in the <testsuite> node (instead of <testcase>), the same attachment can appear multiple times on the "Test Result" page.

      For example, this XML report:

      <?xml version="1.0" encoding="UTF-8"?>
      <testsuite name="foo_bar_baz" tests="3" failures="0" skipped="0">
      <testcase name="01. test foo">
      </testcase>
      <testcase name="02. test bar">
      </testcase>
      <testcase name="03. test baz">
      </testcase>
      <system-out>
      <![CDATA[
      [[ATTACHMENT|/temp/foo_bar_baz.mov]]]]>
      </system-out>
      <system-err>
      <![CDATA[]]>
      </system-err>
      </testsuite>

      Would yield this result on the "Test Result" page:

      <table style="margin-top: 1em; margin-left:0em;">
      <tbody>
      <tr>
      <td>
      <h3>Attachments</h3>

      <table class="pane" id="attachments">
      <tbody>
      <tr>
      <td class="pane-header">Files</td>
      </tr>

      <tr>
      <td class="pane"><a href=
      "attachments/foo_bar_baz.mov">foo_bar_baz.mov</a></td>
      </tr>

      <tr>
      <td class="pane"><a href=
      "attachments/foo_bar_baz.mov">foo_bar_baz.mov</a></td>
      </tr>

      <tr>
      <td class="pane"><a href=
      "attachments/foo_bar_baz.mov">foo_bar_baz.mov</a></td>
      </tr>

      </tbody>
      </table>
      </td>
      </tr>
      </tbody>
      </table>

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          This should be fixed once this pull request is released
          https://github.com/jenkinsci/junit-attachments-plugin/pull/1

          Show
          orrc Christopher Orr added a comment - This should be fixed once this pull request is released https://github.com/jenkinsci/junit-attachments-plugin/pull/1
          Hide
          orrc Christopher Orr added a comment -

          Version 1.3 of the plugin has been released, which includes this fix.

          Show
          orrc Christopher Orr added a comment - Version 1.3 of the plugin has been released, which includes this fix.
          Hide
          toddmazierski Todd Mazierski added a comment -

          Great, thanks Christopher!

          Show
          toddmazierski Todd Mazierski added a comment - Great, thanks Christopher!

            People

            • Assignee:
              huybrechts huybrechts
              Reporter:
              toddmazierski Todd Mazierski
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: