Closed Bug 725910 Opened 13 years ago Closed 13 years ago

Robotium: Add simple about: page tests

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 13

People

(Reporter: mfinkle, Assigned: mfinkle)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
Navigating to the about page (typing the URL and via the settings UI) has crashed in the past. This is a simple test to make sure we display the page. I used regex to get around the ever-changing name of the app.
Attachment #595927 - Flags: review?(gbrown)
Comment on attachment 595927 [details] [diff] [review] patch Review of attachment 595927 [details] [diff] [review]: ----------------------------------------------------------------- I love the regexes! This works fine on a tablet but fails on a phone because the Settings menu item is behind "More": org.mozilla.fennec_mozdev.tests.testAboutPage: Failure in testAboutPage: junit.framework.AssertionFailedError: The text: ^Settings$ is not found! at com.jayway.android.robotium.solo.Clicker.clickOnText(Clicker.java:279) at com.jayway.android.robotium.solo.Solo.clickOnText(Solo.java:823) at org.mozilla.fennec_mozdev.tests.testAboutPage.testAboutPage(testAboutPage.java:27) at java.lang.reflect.Method.invokeNative(Native Method) 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 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:1449)
Attachment #595927 - Flags: review?(gbrown) → review-
Attached patch patch 2Splinter Review
This patch adds a check for "More". Works on Gingerbread and Honeycomb. Sent to Try too.
Assignee: nobody → mark.finkle
Attachment #595927 - Attachment is obsolete: true
Attachment #596160 - Flags: review?(gbrown)
Attachment #596160 - Flags: review?(gbrown) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
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: