History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1046
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Steve Luo
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Publishing MSTest failed when duration of a test is longer than one day

Created: 17/Sep/11 03:21 AM   Updated: 08/Oct/11 01:34 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.0-M3, 4.0.0, 3.1.62

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
When MSTest duration is longer than one day, like 1.01:00:30 (one day and one hour and thirty minutes), publish MSTest report step will be failed with below error:

java.lang.IllegalArgumentException: Invalid format: "1" is too short
        at org.joda.time.format.PeriodFormatter.parseMutablePeriod(PeriodFormatter.java:326)
        at org.joda.time.format.PeriodFormatter.parsePeriod(PeriodFormatter.java:304)
        at com.pmease.quickbuild.plugin.report.engine.datatype.DurationType.fromString(DurationType.java:114)
        at com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType.fromString(AbstractDataType.java:40)
        at com.pmease.quickbuild.plugin.report.mstest.TrxFileProcessor.parseDuration(TrxFileProcessor.java:93)
        at com.pmease.quickbuild.plugin.report.mstest.TrxFileProcessor.processCurrentElement(TrxFileProcessor.java:68)
        at com.pmease.quickbuild.plugin.report.engine.generator.xpath.XPathProcessor.processResource(XPathProcessor.java:110)
        at com.pmease.quickbuild.plugin.report.engine.generator.AbstractProcessor.doExecute(AbstractProcessor.java:77)
        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:139)
        at com.pmease.quickbuild.plugin.report.mstest.MSTestPublisher$$EnhancerByCGLIB$$ca32fef4.CGLIB$run$21(<generated>)
        at com.pmease.quickbuild.plugin.report.mstest.MSTestPublisher$$EnhancerByCGLIB$$ca32fef4$$FastClassByCGLIB$$51e6b68c.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
        at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:273)
        at com.pmease.quickbuild.plugin.report.mstest.MSTestPublisher$$EnhancerByCGLIB$$ca32fef4.run(<generated>)
        at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:455)
        at com.pmease.quickbuild.stepsupport.StepJob.execute(StepJob.java:42)
        at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:122)
        at java.lang.Thread.run(Unknown Source)

 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.