[ 
https://issues.jenkins-ci.org/browse/JENKINS-13036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160399#comment-160399
 ] 

Matthias Scholz commented on JENKINS-13036:
-------------------------------------------

Got the logger working now. Using just: "XUnitService" as logger entry.

It looks like the "BuildInfo" section is invalid.
Error:
"WARNUNG: [xUnit] - At line 1 of 
file:/daten/entwicklung/opt/jenkins/jobs/Test_xunit/workspace/ARTSystemNG_test_log.xml:cvc-complex-type.2.4.a:
 Invalid content was found starting with element 'BuildInfo'. One of 
'{TestSuite}' is expected."

Test file extraction:
<?xml version="1.0" encoding="UTF-8"?>
<TestLog>
   <BuildInfo platform="linux" compiler="GNU C++ version 4.5.3" stl="GNU 
libstdc++ version 20110428" boost="1.46.1"/>
   <TestSuite ...>
      ...
   </TestSuite>
</TestLog>
                
> Boost-Test parsing
> ------------------
>
>                 Key: JENKINS-13036
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13036
>             Project: Jenkins
>          Issue Type: Bug
>          Components: xunit
>    Affects Versions: current
>         Environment: linux kernel 3.2.1
> boost 1.46
> jenkins 1.454
> xunit plugin 1.40
>            Reporter: Matthias Scholz
>            Assignee: gbois
>            Priority: Critical
>              Labels: plugin
>         Attachments: test.xml
>
>
> Hello,
> I am trying to connect ourg UnitTest system with Jenkins using xunit plugin.
> The boost xml file is generated by using the following command-line 
> parameters:
> --log_level=all --output_format=XML --report_level=no
> Giving the output to jenkins gives:
> ... .xml' for the metric 'BoostTest' is not valid. The result file has been 
> skipped.
> Is there any possibility to validate against the Boost-Test xsd manually? To 
> investigate the problem. I searched for a XSD file but could not find any 
> file nor reference.
> I also tried to find some uUnit output using the Logger mechanism. The 
> description on the plugin website does not work
> and also did not look as it could work because the build-in help tells a 
> different syntax. So I tried several Logger like (setting priority to 'all'):
> com.thalesgroup.hudson.plugins.xunit.service.XUnitService
> com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer
> com.thalesgroup.hudson.plugins.xunit.service.XUnitValidationService
> com.thalesgroup.hudson.plugins.xunit.service.XUnitReportProcessorService
> com.thalesgroup.hudson.plugins.xunit.service.XUnitLog
> xUnit
> But the xUnit Logger stayed empty.
> So sadly I could not provide any debug information, despite the log file.
> Regards,
> Matthias Scholz

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to