-
Bug
-
Resolution: Fixed
-
Minor
-
None
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>