Closed Bug 814151 Opened 13 years ago Closed 13 years ago

Add a "camera-ready" or similar event to help tests ensure Camera's ready for tests to interact with

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: stephend, Unassigned)

Details

To help with testability / test reliability for our Camera tests [1], we'd love for a "camera-ready" event to be fired (or something similar), so we don't have to rely on arbitrary waits. [1] https://github.com/mozilla/gaia-ui-tests/blob/master/gaiatest/tests/test_camera.py
Stephen: What issues are you seeing? The existing wait is not arbitrary - we're waiting for the video feed to be ready before attempting to capture a photo or video. If the video is not ready then you also wouldn't be able to capture manually, so a failure should be treated as a regression. I have submitted a pull [1] to tidy up the wait code (but not change what we're waiting on), and added a wait for the video to be ready after switching mode from photo to video, which at least locally improved the reliability of the test. Is there a chance the device attached to the Jenkins slave is not set up in such a way that it can reliably take photos? Without moving it, can you open the camera app and capture photo/video? [1] https://github.com/mozilla/gaia-ui-tests/pull/63
I filed this on behalf of Malini, who was looking into the camera tests' reliability at the time.
Are we still having issues? If not, can we close this?
I filed this on proxy -- don't think we need it. Someone else reopen if we do :-)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.