Closed Bug 817414 Opened 12 years ago Closed 12 years ago

Intermittent testBookmarksTab | bookmarks list has 5 children (defaults + a folder) - got 0, expected 5

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect)

20 Branch
ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 20

People

(Reporter: RyanVM, Assigned: jmaher)

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

https://tbpl.mozilla.org/php/getParsedLog.php?id=17526369&tree=Mozilla-Inbound

Android Armv6 Tegra 250 mozilla-inbound opt test robocop on 2012-12-01 17:50:10 PST for push a253800d2e57
slave: tegra-278

0 INFO SimpleTest START
1 INFO TEST-START | testBookmarksTab
2 INFO TEST-PASS | testBookmarksTab | Inserted at:  - content://org.mozilla.fennec.db.browser/bookmarks/10?profile=default
3 INFO TEST-PASS | testBookmarksTab | checking that bookmarks list exists - android.widget.ListView@4847e978
4 INFO TEST-UNEXPECTED-FAIL | testBookmarksTab | bookmarks list has 5 children (defaults + a folder) - got 0, expected 5
Exception caught during test!
junit.framework.AssertionFailedError: 4 INFO TEST-UNEXPECTED-FAIL | testBookmarksTab | bookmarks list has 5 children (defaults + a folder) - got 0, expected 5
	at junit.framework.Assert.fail(Assert.java:47)
	at org.mozilla.fennec.FennecMochitestAssert._logMochitestResult(FennecMochitestAssert.java:107)
	at org.mozilla.fennec.FennecMochitestAssert.ok(FennecMochitestAssert.java:136)
	at org.mozilla.fennec.FennecMochitestAssert.is(FennecMochitestAssert.java:142)
	at org.mozilla.fennec.tests.testBookmarksTab.testList(testBookmarksTab.java:68)
	at org.mozilla.fennec.tests.testBookmarksTab.testBookmarksTab(testBookmarksTab.java:52)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:521)
	at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:204)
	at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:194)
	at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:186)
	at org.mozilla.fennec.tests.BaseTest.runTest(BaseTest.java:120)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:520)
	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447)
5 INFO TEST-UNEXPECTED-FAIL | testBookmarksTab | Exception caught - junit.framework.AssertionFailedError: 4 INFO TEST-UNEXPECTED-FAIL | testBookmarksTab | bookmarks list has 5 children (defaults + a folder) - got 0, expected 5
6 INFO TEST-END | testBookmarksTab | finished in 24994ms
7 INFO TEST-START | Shutdown
8 INFO Passed: 2
9 INFO Failed: 2
10 INFO Todo: 0
11 INFO SimpleTest FINISHED
(In reply to Geoff Brown [:gbrown] from comment #4)
> Regression from bug 759041?
Flags: needinfo?(wjohnston)
Is this a problem with list.getChildCount() where we should be asking list.getAdapter().getCount()?
Test disabled for too many intermittent failures:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f5b2c5d70b04
Whiteboard: [test disabled][leave open]
as per our irc conversation, this seems to fix the problem on my local tegra.
Assignee: nobody → jmaher
Status: NEW → ASSIGNED
Attachment #693514 - Flags: review?(gbrown)
Flags: needinfo?(wjohnston)
Comment on attachment 693514 [details] [diff] [review]
wait for 'desktop bookmarks' before getting the child list (1.0)

Review of attachment 693514 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #693514 - Flags: review?(gbrown) → review+
If this fix works maybe waiting for a text like for example "Today" would work in the history tab to solve bug 818095 or bug 818175
Whiteboard: [test disabled][leave open]
https://hg.mozilla.org/mozilla-central/rev/1bf7f31883ce
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: