Investigate test_dialer_receive_call_with_locked_screen.py - ScreenManager is undefined

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
4 years ago
7 months ago

People

(Reporter: echang, Unassigned)

Tracking

unspecified
x86_64
Linux

Firefox Tracking Flags

(b2g-v2.2 affected)

Details

(Reporter)

Description

4 years ago
### By Jenkins
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette_test.py", line 268, in run
testMethod()
File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/gaiatest/tests/functional/dialer/test_dialer_receive_call_with_locked_screen.py", line 38, in test_receive_call_with_locked_screen
to_number=self.testvars['local_phone_numbers'][0].replace('+', ''))
File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/gaiatest/utils/plivo/plivo_util.py", line 52, in make_call
message='Unable to find the live call for this device.'
File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/wait.py", line 143, in until
cause=last_exc)
TimeoutException: Traceback (most recent call last):
File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/wait.py", line 122, in until
rv = condition(self.marionette)
File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/gaiatest/utils/plivo/plivo_util.py", line 51, in <lambda>
lambda p: p.get_call_for_number(to_number),
File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/gaiatest/utils/plivo/plivo_util.py", line 84, in get_call_for_number
raise self.PlivoActiveCallNotFound
TimeoutException: Timed out after 30.5 seconds with message: Unable to find the live call for this device., caused by <class 'gaiatest.utils.plivo.plivo_util.PlivoActiveCallNotFound'>

### Local run
(zz)ericcc@BP6375:~/repo/echangmoz/gaia/tests/python/gaia-ui-tests/gaiatest$ gaiatest --address=localhost:2828 --testvars=testvars.json tests/functional/dialer/test_dialer_receive_call_with_locked_screen.py
Results will not be posted to Treeherder. Please set the following environment variables to enable Treeherder reports: TREEHERDER_KEY, TREEHERDER_SECRET
starting httpd
running webserver on http://10.247.26.254:43093/
mozversion application_buildid: 20150211162505
mozversion application_changeset: dcf030ef499d
mozversion application_display_name: B2G
mozversion application_id: {3c2e2abc-06d4-11e1-ac3b-374f68613e61}
mozversion application_name: B2G
mozversion application_remotingname: b2g
mozversion application_repository: https://hg.mozilla.org/releases/mozilla-b2g37_v2_2
mozversion application_vendor: Mozilla
mozversion application_version: 37.0a2
mozversion device_firmware_date: 1423702159
mozversion device_firmware_version_base: L1TC000118D0
mozversion device_firmware_version_incremental: eng.cltbld.20150211.194909
mozversion device_firmware_version_release: 4.4.2
mozversion device_id: flame
mozversion gaia_changeset: 791e53728cd8018f1d7cf7efe06bbeb1179f0370
mozversion gaia_date: 1423683062
mozversion platform_buildid: 20150211162505
mozversion platform_changeset: dcf030ef499d
mozversion platform_repository: https://hg.mozilla.org/releases/mozilla-b2g37_v2_2
mozversion platform_version: 37.0a2
SUITE-START | Running 1 tests
TEST-START | test_dialer_receive_call_with_locked_screen.py TestReceiveCallScreenLocked.test_receive_call_with_locked_screen
TEST-UNEXPECTED-ERROR | test_dialer_receive_call_with_locked_screen.py TestReceiveCallScreenLocked.test_receive_call_with_locked_screen | JavascriptException: JavascriptException: TypeError: window.wrappedJSObject.ScreenManager is undefined
stacktrace:
	execute_script @gaia_test.py, line 644
	inline javascript, line 1311
	src: "let __marionetteFunc = function(){window.wrappedJSObject.ScreenManager.turnScreenOff(true)};__marionetteFunc.apply(null, __marionetteParams);"



Traceback (most recent call last):
  File "/home/ericcc/repo/echangmoz/zz/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette_test.py", line 268, in run
    testMethod()
  File "/home/ericcc/repo/echangmoz/gaia/tests/python/gaia-ui-tests/gaiatest/tests/functional/dialer/test_dialer_receive_call_with_locked_screen.py", line 36, in test_receive_call_with_locked_screen
    self.device.lock()
  File "/home/ericcc/repo/echangmoz/gaia/tests/python/gaia-ui-tests/gaiatest/gaia_test.py", line 693, in lock
    self.turn_screen_off()
  File "/home/ericcc/repo/echangmoz/gaia/tests/python/gaia-ui-tests/gaiatest/gaia_test.py", line 644, in turn_screen_off
    self.marionette.execute_script("window.wrappedJSObject.ScreenManager.turnScreenOff(true)")
  File "/home/ericcc/repo/echangmoz/zz/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette.py", line 1278, in execute_script
    filename=os.path.basename(frame[0]))
  File "/home/ericcc/repo/echangmoz/zz/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/decorators.py", line 36, in _
    return func(*args, **kwargs)
  File "/home/ericcc/repo/echangmoz/zz/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette.py", line 634, in _send_message
    self._handle_error(response)
  File "/home/ericcc/repo/echangmoz/zz/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette.py", line 687, in _handle_error
    raise errors.JavascriptException(message=message, status=status, stacktrace=stacktrace)
TEST-INFO took 16425ms

SUMMARY
-------
passed: 0
failed: 1
todo: 0

FAILED TESTS
-------
test_dialer_receive_call_with_locked_screen.py test_dialer_receive_call_with_locked_screen.TestReceiveCallScreenLocked.test_receive_call_with_locked_screen
SUITE-END | took 17s


### Version
Serial: e47cd843 (State: device)
Build ID               20150211162505
Gaia Revision          791e53728cd8018f1d7cf7efe06bbeb1179f0370
Gaia Date              2015-02-11 19:31:02
Gecko Revision         https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/dcf030ef499d
Gecko Version          37.0a2
Device Name            flame
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.cltbld.20150211.194909
Firmware Date          Wed Feb 11 19:49:19 EST 2015
Bootloader             L1TC000118D0

### VPN needed
http://mtbf-2.corp.tpe1.mozilla.com:8080/view/FxOS_v2.2/job/B2G.v2.2.pvt.flame.gaiatest.smoketest/333/HTML_Report/
(Reporter)

Comment 1

4 years ago
Same issue with test_dialer_miss_call_from_known_contact_notification.py

running webserver on http://10.247.26.254:48839/
mozversion application_buildid: 20150211162505
mozversion application_changeset: dcf030ef499d
mozversion application_display_name: B2G
mozversion application_id: {3c2e2abc-06d4-11e1-ac3b-374f68613e61}
mozversion application_name: B2G
mozversion application_remotingname: b2g
mozversion application_repository: https://hg.mozilla.org/releases/mozilla-b2g37_v2_2
mozversion application_vendor: Mozilla
mozversion application_version: 37.0a2
mozversion device_firmware_date: 1423702159
mozversion device_firmware_version_base: L1TC000118D0
mozversion device_firmware_version_incremental: eng.cltbld.20150211.194909
mozversion device_firmware_version_release: 4.4.2
mozversion device_id: flame
mozversion gaia_changeset: 791e53728cd8018f1d7cf7efe06bbeb1179f0370
mozversion gaia_date: 1423683062
mozversion platform_buildid: 20150211162505
mozversion platform_changeset: dcf030ef499d
mozversion platform_repository: https://hg.mozilla.org/releases/mozilla-b2g37_v2_2
mozversion platform_version: 37.0a2
SUITE-START | Running 1 tests
TEST-START | test_dialer_miss_call_from_known_contact_notification.py TestReceiveCallFromKnownContactNotification.test_dialer_miss_call_from_known_contact_notification
TEST-UNEXPECTED-ERROR | test_dialer_miss_call_from_known_contact_notification.py TestReceiveCallFromKnownContactNotification.test_dialer_miss_call_from_known_contact_notification | JavascriptException: JavascriptException: TypeError: window.wrappedJSObject.ScreenManager is undefined
stacktrace:
        execute_script @gaia_test.py, line 644
        inline javascript, line 1311
        src: "let __marionetteFunc = function(){window.wrappedJSObject.ScreenManager.turnScreenOff(true)};__marionetteFunc.apply(null, __marionetteParams);"



Traceback (most recent call last):
  File "/home/ericcc/repo/echangmoz/zz/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette_test.py", line 268, in run
    testMethod()
  File "/home/ericcc/repo/echangmoz/gaia/tests/python/gaia-ui-tests/gaiatest/tests/functional/dialer/test_dialer_miss_call_from_known_contact_notification.py", line 35, in test_dialer_miss_call_from_known_contact_notification
    self.device.lock()
  File "/home/ericcc/repo/echangmoz/gaia/tests/python/gaia-ui-tests/gaiatest/gaia_test.py", line 693, in lock
    self.turn_screen_off()
  File "/home/ericcc/repo/echangmoz/gaia/tests/python/gaia-ui-tests/gaiatest/gaia_test.py", line 644, in turn_screen_off
    self.marionette.execute_script("window.wrappedJSObject.ScreenManager.turnScreenOff(true)")
  File "/home/ericcc/repo/echangmoz/zz/local/lib/python2.7/site-packages/marionette_client-0.8.6-py2.7.egg/marionette/marionette.py", line 1278, in execute_script
    filename=os.path.basename(frame[0]))
(Reporter)

Updated

4 years ago
Keywords: smoketest
(Reporter)

Comment 2

4 years ago
not happening with this, keep monitoring
Serial: e47cd843 (State: device)
Build ID               20150212162852
Gaia Revision          ab9029f2b203e2a36e8f81edd17fa5ff81c874b5
Gaia Date              2015-02-12 21:09:11
Gecko Revision         https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/b1d3839680fb
Gecko Version          37.0a2
Device Name            flame
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.cltbld.20150212.200144
Firmware Date          Thu Feb 12 20:01:55 EST 2015
Bootloader             L1TC000118D0
Status: NEW → UNCONFIRMED
Ever confirmed: false
clearing ST keyword, please re-add if this is indeed a smoketest blocker.
Keywords: smoketest
Is this still happening? Or was this an intermittent issue? Can this bug be closed perhaps?

Comment 5

7 months ago
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.