Op woensdag 5 februari 2014 23:22:25 UTC+1 schreef JonathanRRogers:
>
> On Wednesday, February 5, 2014 5:53:59 AM UTC-5, [email protected]:
>>
>> I had the same isssues as you did. Couldn't find a proper example of the 
>> Junit XML file. Finally made it work. Maybe XML example below might help
>>  
>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <testsuite name="suite01">
>>> <testcase classname="tc01.xml" name="tc01-description" time="0.698">
>>> </testcase>
>>> <testcase classname="tc02.xml" name="tc02-description" time="0.609">
>>> <failure message="Some Failure occurred">Failure info</failure>
>>> <system-out>[[ATTACHMENT|C:/path/to/file.jpg]]</system-out>
>>> </testcase>
>>> <testcase classname="tc03.xml" name="tc03-description" time="2.712">
>>> <failure message="Some Failure occurred">Failure info</failure>
>>> <system-out>
>>> [[ATTACHMENT|C:/path/to/file2.jpg]]
>>> [[ATTACHMENT|C:/path/to/file3.jpg]]
>>> </system-out>
>>> </testcase>
>>> </testsuite>
>>>
>>>
>>>
> Thanks for the example. What isn't explained in the docs and HOWTO for the 
> Jenkins plugin is that it looks for attachments in the <system-out> 
> element. I'm using nose's XUnit plugin, which doesn't produce that element. 
> I got the behavior I wanted by extending the nose XUnit plugin to add 
> <system-out>.
>


In addition, the <system-err> element also does the job.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to