| << Back to previous view |
[QB-512] NUnitPublisher failed: Can't convert object
|
|
| Status: | Resolved |
| Project: | QuickBuild |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | AlSt | Assigned To: | Steve Luo |
| Resolution: | Fixed | Votes: | 0 |
| Remaining Estimate: | Unknown | Time Spent: | Unknown |
| Original Estimate: | Unknown | ||
| Description |
|
Following build step failed:
Type: NUnit Report Source Dir: testdotnet/reports Files to process: *.xml Whole BuildStep log: 13:08:36,8 [publish-report-tests-nunit@lab9:8811] INFO - Running step 'publish-report-tests-nunit' on node 'lab9:8811'... 13:08:36,8 [publish-report-tests-nunit@lab9:8811] INFO - Acquiring workspace mutex... 13:08:36,8 [publish-report-tests-nunit@lab9:8811] INFO - Workspace mutex acquired. 13:08:36,8 [publish-report-tests-nunit@lab9:8811] INFO - Start generating report 'tests'. 13:08:37,1 [publish-report-tests-nunit@lab9:8811] ERROR - Step 'publish-report-tests-nunit' is failed. com.pmease.quickbuild.plugin.report.engine.exception.ReportGenerateException: Executing rule 'Type: XPATH, Column: duration' failed. at com.pmease.quickbuild.plugin.report.engine.generator.AbstractProcessor.executeRule(AbstractProcessor.java:127) at com.pmease.quickbuild.plugin.report.engine.generator.xpath.XPathProcessor.processResource(XPathProcessor.java:91) at com.pmease.quickbuild.plugin.report.engine.generator.AbstractProcessor.doExecute(AbstractProcessor.java:74) at com.pmease.quickbuild.plugin.report.engine.generator.GenerateAction.execute(GenerateAction.java:37) at com.pmease.quickbuild.plugin.report.engine.generator.AbstractGenerator.doExecute(AbstractGenerator.java:38) at com.pmease.quickbuild.plugin.report.engine.generator.GenerateAction.execute(GenerateAction.java:37) at com.pmease.quickbuild.plugin.report.engine.generator.DefaultGenerator.generate(DefaultGenerator.java:36) at com.pmease.quickbuild.plugin.report.engine.contribution.publisher.AbstractPublisher.run(AbstractPublisher.java:129) at com.pmease.quickbuild.plugin.report.nunit.NUnitPublisher$$EnhancerByCGLIB$$5d780bf1.CGLIB$run$24(<generated>) at com.pmease.quickbuild.plugin.report.nunit.NUnitPublisher$$EnhancerByCGLIB$$5d780bf1$$FastClassByCGLIB$$be508917.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167) at com.pmease.quickbuild.DefaultExpressionManager$Interpolator.intercept(DefaultExpressionManager.java:280) at com.pmease.quickbuild.plugin.report.nunit.NUnitPublisher$$EnhancerByCGLIB$$5d780bf1.run(<generated>) at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:498) at com.pmease.quickbuild.stepsupport.StepJob.execute(StepJob.java:37) at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:114) at java.lang.Thread.run(Thread.java:619) Caused by: com.pmease.quickbuild.plugin.report.engine.exception.TypeCastException: Can't convert object<NaN> from java.lang.String to DURATION at com.pmease.quickbuild.plugin.report.engine.datatype.DurationType.fromString(DurationType.java:140) at com.pmease.quickbuild.plugin.report.engine.generator.xpath.XPathRule.doExecute(XPathRule.java:98) at com.pmease.quickbuild.plugin.report.engine.generator.GenerateAction.execute(GenerateAction.java:37) at com.pmease.quickbuild.plugin.report.engine.generator.AbstractProcessor.executeRule(AbstractProcessor.java:119) ... 16 more 13:08:37,1 [publish-report-tests-nunit@lab9:8811] INFO - Workspace mutex released. |
| Comments |
| Comment by AlSt [ 26/Jan/10 12:46 PM ] |
|
I attached the content of the folder: testdotnet/reports
I'm not sure but maybe the problem is that there is another xml file which is not a nunit report. It is a a coverage report. But I don't think that this is the problem because it already worked like that. Then I assume it has something to do with the Ignore attribute I just added to some tests. Maybe that is the reason of the cast exception. |
| Comment by AlSt [ 26/Jan/10 01:44 PM ] |
|
I reconfigured the build step: Files to process: testResult.xml
I still have the same problem. So I guess the Ignore Attribute is the problem |
| Comment by Steve Luo [ 26/Jan/10 03:38 PM ] |
|
Hi Josef,
You are right, the reason is that the time attribute for test-case is missing in NUnit report. We'll fix this in 2.1.0. |