Robocop testSettingsMenuItems fails on x86 emulator / RAZR

RESOLVED FIXED in Firefox 25

Status

()

Firefox for Android
General
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: gbrown, Assigned: gbrown)

Tracking

unspecified
Firefox 25
x86
Android
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
Robocop's testSettingsMenuItems fails when run on the x86 emulator setup (see bug 891959). It also fails locally when run on a Motorola Razr i (XT890).

This may be a fails-on-Jellybean rather than a fails-on-x86 problem -- that seems to be the typical cause of these bugs.

0 INFO SimpleTest START
1 INFO TEST-START | testSettingsMenuItems
EventExpecter: no longer listening for Gecko:Ready
2 INFO TEST-PASS | testSettingsMenuItems | Awesomebar URL stayed the same - about:home should equal about:home
waitForText timeout on Enter Search
waitForText timeout on ^Settings$
waitForText timeout on ^Settings$
Exception caught during test!
junit.framework.AssertionFailedError: The text: ^Settings$ is not found!
	at junit.framework.Assert.fail(Assert.java:50)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at com.jayway.android.robotium.solo.Clicker.clickOnText(Clicker.java:330)
	at com.jayway.android.robotium.solo.Solo.clickOnText(Solo.java:839)
	at org.mozilla.fennec_mozdev.tests.BaseTest.selectMenuItem(BaseTest.java:476)
	at org.mozilla.fennec_mozdev.tests.testSettingsMenuItems.testSettingsMenuItems(testSettingsMenuItems.java:98)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	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 org.mozilla.fennec_mozdev.tests.BaseTest.runTest(BaseTest.java:133)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:115)
	at junit.framework.TestResult.runProtected(TestResult.java:133)
	at junit.framework.TestResult.run(TestResult.java:118)
	at junit.framework.TestCase.run(TestCase.java:124)
	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:1584)
3 INFO TEST-UNEXPECTED-FAIL | testSettingsMenuItems | Exception caught - junit.framework.AssertionFailedError: The text: ^Settings$ is not found!
4 INFO TEST-END | testSettingsMenuItems | finished in 83320ms
5 INFO TEST-START | Shutdown
6 INFO Passed: 1
7 INFO Failed: 1
8 INFO Todo: 0
9 INFO SimpleTest FINISHED
(Assignee)

Comment 1

5 years ago
On screen, Settings are opened successfully and show items: Sync, Customize, Display, Privacy, Mozilla.
(Assignee)

Comment 2

5 years ago
Created attachment 783754 [details] [diff] [review]
wait for Settings to open before continuing

Just a minor tweak was needed here, because of the timing on the RAZR: After opening Settings, wait for confirmation that Settings opened before continuing.
Attachment #783754 - Flags: review?(jmaher)
(Assignee)

Updated

5 years ago
Assignee: nobody → gbrown
Comment on attachment 783754 [details] [diff] [review]
wait for Settings to open before continuing

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

lgtm!
Attachment #783754 - Flags: review?(jmaher) → review+
https://hg.mozilla.org/mozilla-central/rev/af4a04fe4ff5
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
(Assignee)

Updated

4 years ago
Blocks: 936226
You need to log in before you can comment on or make changes to this bug.