Closed Bug 1812692 Opened 2 years ago Closed 2 years ago

Add in Device Level Screenshot Testing for GeckoView Junit Tests

Categories

(GeckoView :: General, enhancement, P1)

All
Android
enhancement

Tracking

(firefox110 wontfix, firefox111 wontfix, firefox112 fixed)

RESOLVED FIXED
112 Branch
Tracking Status
firefox110 --- wontfix
firefox111 --- wontfix
firefox112 --- fixed

People

(Reporter: olivia, Assigned: olivia)

References

Details

(Whiteboard: [android-print][geckoview:m112])

Attachments

(1 file)

Device level screenshots (that would capture the full device screen) could be beneficial when testing with GeckoView junit.

In bug 1804467, I tried adding a test in PrintDelegateTest#printPreviewRendered to test that the device print dialog opened by taking a screenshot. However, using UIAutomation to takeScreenshot seemed to cause test harness side-effects that showed up as TextInputDelegateTest timeouts. (UIAutomation was possibly interfering with the test harness' AccessibilityService?) Reproducible when running TextInputDelegateTest after PrintDelegateTest in the same test harness with UIAutomation access.

Had similar issues trying to take a screenshot using:

Goal of this bug is to find a side-effect free way to take screenshots of the entire device screen for Android junit tests and reenable/reconfigure the screenshot test in PrintDelegateTest.

This bug is impacting this test, printPreviewRendered, and will also impact other new printing tests that use screenshots for bug 1659818. (Bug will prevent the tests from running on CI.)

See Also: → 1809915
Assignee: nobody → ohall
Priority: -- → P1
Whiteboard: [android-print][geckoview:m113?]

Reducing the number of characters in the TextInputDelegateTest content
large test prevents timeouts from occurring when using UIAutomator.
UIAutomator tests will be reactivated in bug 1659818.

Whiteboard: [android-print][geckoview:m113?] → [android-print][geckoview:m112]
Pushed by ohall@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1cc8016e85b7 TextInputDelegateTest Timeouts r=m_kato,geckoview-reviewers
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch

No need to uplift this test fix to 111.

Component: Core → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: