junit.framework.AssertionFailedError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Due to some technical issues, our Crosswalk Android Tests slave was offline for about a week. https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20%28Android%20x86%29/builds/2080 is the first build after it went back up, and it's testing about 10 commits. As you can see, some Android tests are failing. https://github.com/crosswalk-project/crosswalk/pull/3833 reverted a big one and fixed most of them, but there's still one test that is flaky: {code} [FAIL] org.xwalk.core.internal.xwview.test.OnShowOnHideCustomViewTest#testOnShowCustomViewAndPlayWithHtmlControl: junit.framework.AssertionFailedError: Criteria not met in allotted time. at org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread(CriteriaHelper.java:74) at org.chromium.content.browser.test.util.DOMUtils.waitForMediaPlay(DOMUtils.java:105) at org.xwalk.core.internal.xwview.test.OnShowOnHideCustomViewTest.testOnShowCustomViewAndPlayWithHtmlControl(OnShowOnHideCustomViewTest.java:64) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1661) {code} This test seems to have been flaky for a while. The first occurrence of the failure I could find was here: https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20(Android%20x86)/builds/2039 which obviously did not cause it. We need someone to find the source of flakiness and either revert it or fix the issue.
    via by Raphael Kubo da Costa,
    • junit.framework.AssertionFailedError: Criteria not met in allotted time. at org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread(CriteriaHelper.java:74) at org.chromium.content.browser.test.util.DOMUtils.waitForMediaPlay(DOMUtils.java:105) at org.xwalk.core.internal.xwview.test.OnShowOnHideCustomViewTest.testOnShowCustomViewAndPlayWithHtmlControl(OnShowOnHideCustomViewTest.java:64) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1661)
    No Bugmate found.