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

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

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

Display test message incorrectly for boolean type assertion

Created: 20/Feb/13 05:00 AM   Updated: 27/Feb/13 01:04 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.8

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


 Description  « Hide
If you have a JUnit assertions which is based on boolean then you get this kind of output:

junit.framework.AssertionFailedError: Road block expectation failed. expectedtrue> but wasfalse>

but the UI of QB doesn't handle this

http://quickbuild.intra.local/build/849790/junit_report

test_RTE_REP_DisablingContinuousPlanningWithTraffic

if you check the source of the webpage then you will find it in there

<td><div class="stacktrace"><div class="msg"><pre>junit.framework.AssertionFailedError: Road block expectation failed. expectedtrue> but wasfalse>

        at com.pmease.test.testcases.CustomTestRunner.runChild(CustomTestRunner.java:49)

        at com.pmease.test.testcases.CustomTestRunner.runChild(CustomTestRunner.java:21)

        at com.pmease.test.testcases.CustomTestRunner.run(CustomTestRunner.java:64)

        at com.pmease.test.reflection.interfaces.routeConstructor.RouteContinuousPlanningBaseTest.verifyTrafficEvents(RouteContinuousPlanningBaseTest.java:466)

        at com.pmease.test.reflection.interfaces.routeConstructor.RouteContinuousPlanningBaseTest.connectTrafficAndVerifyNoNewRouteProposed(RouteContinuousPlanningBaseTest.java:206)

        at com.tomtom.testcases.reflection.routeConstructor.RouteContinuousPlanningTrafficTest.test_RTE_REP_DisablingContinuousPlanningWithTraffic(RouteContinuousPlanningTrafficTest.java:166)

        at com.pmease.test.testcases.CustomRunAfters.evaluate(CustomRunAfters.java:29)

</pre></div></div></td>

 

 

This is basicly standard output of JUnit4 if you do Assert.AssertEquals("Boolean both true", true, false).


 All   Comments   Work Log   Change History      Sort Order:
Change by PMEase JIRA Administrator [20/Feb/13 12:23 PM]
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Steve Luo [ steve ]
Resolution Fixed [ 1 ]

Change by PMEase JIRA Administrator [20/Feb/13 12:23 PM]
Fix Version/s 5.0.8 [ 11442 ]