MantisBT - Scoring Application Prototype
View Issue Details
0000012Scoring Application Prototype[All Projects] Generalpublic2014-05-15 01:342016-04-04 10:16
ptrue 
ptrue 
normalmajorrandom
resolvedfixed 
 
Sprint #10Sprint #10 
0000012: testSetViewPosition sometimes fails
From time to time this test fails.

testSetViewPosition(com.pt.tnp.ui.CaretGUITest) Time elapsed: 1.21 sec <<< FAILURE!
java.lang.AssertionError: expected:<50> but was:<7>
    at org.junit.Assert.fail(Assert.java:91)
    at org.junit.Assert.failNotEquals(Assert.java:645)
    at org.junit.Assert.assertEquals(Assert.java:126)
    at org.junit.Assert.assertEquals(Assert.java:470)
    at org.junit.Assert.assertEquals(Assert.java:454)
    at com.pt.tnp.ui.CaretGUITest.testSetViewPosition(CaretGUITest.java:312)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
No tags attached.
related to 0000031resolved ptrue Hand tool: display is blinking and jumping when moving 
child of 0000073resolved ptrue Bug fixes 
Issue History
2014-05-15 01:34ptrueNew Issue
2014-05-29 19:52administratorSeverityminor => major
2014-05-30 01:13ptrueRelationship addedrelated to 0000031
2014-06-07 18:53ptrueNote Added: 0000035
2014-06-07 18:53ptrueNote Edited: 0000035bug_revision_view_page.php?bugnote_id=35#r16
2014-06-20 04:48administratorTarget Version => Sprint 0000007
2014-06-20 04:54administratorRelationship addedchild of 0000073
2014-07-01 00:16administratorTarget VersionSprint 0000007 => Sprint 0000008
2014-07-18 01:57administratorTarget VersionSprint 0000008 => Sprint 0000010
2016-04-04 10:15ptrueAssigned To => ptrue
2016-04-04 10:15ptrueStatusnew => assigned
2016-04-04 10:16ptrueNote Added: 0000093
2016-04-04 10:16ptrueStatusassigned => resolved
2016-04-04 10:16ptrueFixed in Version => Sprint 0000010
2016-04-04 10:16ptrueResolutionopen => fixed

Notes
(0000035)
ptrue   
2014-06-07 18:53   
Added 10 retries to the test in the build #200. However in real life it still doesn't always work correctly. Find why.

(0000093)
ptrue   
2016-04-04 10:16   
Fixed by adding waitForDisplay in tests