Closed Bug 985341 Opened 10 years ago Closed 10 years ago

Fix uitest-privileged for test_video_capture_prompt failure

Categories

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

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: askeing, Assigned: gasolin)

References

Details

Attachments

(3 files)

Buri master build
Gaia      c03a6af9028c4b74a84b5a98085bbb0c07261175
Gecko     https://hg.mozilla.org/mozilla-central/rev/082761b7bc54
BuildID   20140318160201
Version   31.0a1
ro.build.version.incremental=eng.archermind.20131114.105818
ro.build.date=Thu Nov 14 10:58:33 CST 2013


TEST-START test_privileged_app_audio_capture_prompt.py

test_audio_capture_prompt (test_privileged_app_audio_capture_prompt.TestPrivilegedAppAudioCapturePrompt) ... ok

test_video_capture_prompt (test_privileged_app_audio_capture_prompt.TestPrivilegedAppAudioCapturePrompt) ... ERROR

======================================================================
ERROR: None
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/jenkins/jobs/B2G.master.pvt.hamachi.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.7.5-py2.7.egg/marionette/marionette_test.py", line 163, in run
    testMethod()
  File "/var/lib/jenkins/jobs/B2G.master.pvt.hamachi.gaiatest/workspace/tests/python/gaia-ui-tests/gaiatest/tests/functional/system/test_privileged_app_audio_capture_prompt.py", line 45, in test_video_capture_prompt
    permission.wait_for_permission_dialog_displayed()
  File "/var/lib/jenkins/jobs/B2G.master.pvt.hamachi.gaiatest/workspace/tests/python/gaia-ui-tests/gaiatest/apps/homescreen/regions/permission_dialog.py", line 17, in wait_for_permission_dialog_displayed
    self.wait_for_element_displayed(*self._permission_dialog_locator)
  File "/var/lib/jenkins/jobs/B2G.master.pvt.hamachi.gaiatest/workspace/tests/python/gaia-ui-tests/gaiatest/apps/base.py", line 42, in wait_for_element_displayed
    lambda m: m.find_element(by, locator).is_displayed())
  File "/var/lib/jenkins/jobs/B2G.master.pvt.hamachi.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.7.5-py2.7.egg/marionette/wait.py", line 143, in until
    cause=last_exc)
TimeoutException: TimeoutException: Timed out after 30.1082799435 seconds
TEST-UNEXPECTED-FAIL | test_privileged_app_audio_capture_prompt.py test_privileged_app_audio_capture_prompt.TestPrivilegedAppAudioCapturePrompt.test_video_capture_prompt | 
----------------------------------------------------------------------
Ran 2 tests in 117.159s

FAILED (errors=1)
Attached image Screenshot
There is "Permission Denied" message on the screen.
### STR
1. launch UI Test-Privileged
2. "getUserMedia > Video1"

### Expected
1. show permission dialog

### Actual
1. Permission Denied, no permission dialog
See Also: → 983572
Attachment #8393403 - Flags: review?(zcampbell)
Comment on attachment 8393403 [details] [review]
pull request redirect to github

Adding the test in a separate file looking good.
But the test still fails with "Permision Denied"
Attachment #8393403 - Flags: review+
Assignee: nobody → gasolin
I think 'The gUM is not complete yet' message was removed in bug 983572 though.

Test it in real device and works fine.
Comment on attachment 8393403 [details] [review]
pull request redirect to github

If we split in 2 files can you also add a xfail with the appropriate bug please
Attachment #8393403 - Flags: review-
Comment on attachment 8393403 [details] [review]
pull request redirect to github

r-, looks like this either fails on device or is intermittent.
Attachment #8393403 - Flags: review?(zcampbell) → review-
travis green, push to try server
https://tbpl.mozilla.org/?tree=Try&rev=71cddc01f52e

with following options
https://gist.github.com/gasolin/9679032
Flags: needinfo?(kgrandon)
Flags: needinfo?(kgrandon)
Forgot about this..

Still want to take this patch because it separates the test into separate files.

gasolin, can you rebase? thanks!
Flags: needinfo?(gasolin)
rebased and push to try https://tbpl.mozilla.org/?tree=Try&rev=85a056044ba8
Attachment #8411535 - Flags: review?(zcampbell)
Flags: needinfo?(gasolin)
Comment on attachment 8411535 [details] [review]
pull request redirect to github 2

r+

The manifest file tag is wrong but I will fix that in a follow up commit.
Attachment #8411535 - Flags: review?(zcampbell) → review+
thanks!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: