Closed Bug 1217037 Opened 9 years ago Closed 9 years ago

test_gallery_share_picture.py : TimeoutException: TimeoutException: Timed out after 30.1 seconds

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: MaxIvanov, Assigned: martijn.martijn)

Details

Attachments

(1 file)

Description: Test case fails with "TimeoutException"

Steps:
1. Update a flame device to 20151021030303
2. Run this test case http://lxr.mozilla.org/gaia/source/tests/python/gaia-ui-tests/gaiatest/tests/functional/gallery/test_gallery_share_picture.py

Actual result:
"TimeoutException"

Expected result:
Test completes successfully.

Repro Rate: Reproduced via Jenkins (2/5 passing)
http://jenkins1.qa.scl3.mozilla.com/job/flame-kk.ui.adhoc/900/HTML_Report/
http://jenkins1.qa.scl3.mozilla.com/job/flame-kk.ui.adhoc/901/HTML_Report/

 File "/var/jenkins/1/workspace/flame-kk.ui.adhoc/.env/local/lib/python2.7/site-packages/marionette_client-1.0.0-py2.7.egg/marionette/marionette_test.py", line 296, in run
testMethod()
File "/var/jenkins/1/workspace/flame-kk.ui.adhoc/tests/python/gaia-ui-tests/gaiatest/tests/functional/gallery/test_gallery_share_picture.py", line 37, in test_gallery_share_to_messages
new_message = activities.share_to_messages()
File "/var/jenkins/1/workspace/flame-kk.ui.adhoc/tests/python/gaia-ui-tests/gaiatest/apps/system/regions/activities.py", line 105, in share_to_messages
return NewMessage(self.marionette)
File "/var/jenkins/1/workspace/flame-kk.ui.adhoc/tests/python/gaia-ui-tests/gaiatest/apps/messages/regions/new_message.py", line 36, in __init__
Wait(self.marionette).until(lambda m: element.rect['x'] == 0 and element.is_displayed())
File "/var/jenkins/1/workspace/flame-kk.ui.adhoc/.env/local/lib/python2.7/site-packages/marionette_driver-1.0.0-py2.7.egg/marionette_driver/wait.py", line 143, in until
cause=last_exc)
TimeoutException: TimeoutException: Timed out after 20.1 seconds
Assignee: nobody → martijn.martijn
Comment on attachment 8676956 [details] [review]
[gaia] mwargers:1217037 > mozilla-b2g:master

This seems to fix it. It seems like Marionette communication interferes here, which causes a blank window on the spot of the failure.
Attachment #8676956 - Flags: review?(npark)
Attachment #8676956 - Flags: review?(jlorenzo)
Comment on attachment 8676956 [details] [review]
[gaia] mwargers:1217037 > mozilla-b2g:master

If it works then it's good, but it's odd that how changing interval from 0.1 (DEFAULT) to 1 fixes the bug while leaving the timeout value the same.  I thought as long as the condition is satisfied, it'll exit with success?
Attachment #8676956 - Flags: review?(npark) → review+
Comment on attachment 8676956 [details] [review]
[gaia] mwargers:1217037 > mozilla-b2g:master

I agree with No-Jun. It's odd that we have to poll every one second for a transition that should be done in about the same time.

That might be an underlying Gecko bug. I wonder if we'd be able to remove it at some point.

In any case, this makes the test more stable. Let's get this patch in the tree.
Attachment #8676956 - Flags: review?(jlorenzo) → review+
Merged: https://github.com/mozilla-b2g/gaia/commit/f61af3d4abab49312f91dd4062f03c7cf245a27d

I agree, it's odd that this helps.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: