<< Back to previous view

[QB-1552] Display test message incorrectly for boolean type assertion
Created: 20/Feb/13  Updated: 27/Feb/13

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.8

Type: Bug Priority: Major
Reporter: Steve Luo Assigned To: Unassigned
Resolution: Fixed Votes: 1
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
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).

Generated at Tue Jun 11 03:25:34 UTC 2024 using JIRA 189.