Closed
Bug 1223427
Opened 9 years ago
Closed 6 years ago
test_settings_bluetooth.py : JavascriptException: JavascriptException: TypeError: GaiaDataLayer.getBluetoothDefaultAdapter(...) is undefined
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: MaxIvanov, Unassigned)
References
Details
Description: Test case fails with "JavascriptException" Steps: 1. Update a flame device to 20151110030032 2. Run this test case http://lxr.mozilla.org/gaia/source/tests/python/gaia-ui-tests/gaiatest/tests/functional/settings/test_settings_bluetooth.py Actual result: "JavascriptException" Expected result: Test completes successfully. Repro Rate: Reproduced via Jenkins adhoc (0/5 passing) http://jenkins1.qa.scl3.mozilla.com/job/flame-kk.ui.adhoc.bitbar/331/HTML_Report/ Traceback (most recent call last): File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_client-1.0.0-py2.7.egg/marionette/marionette_test.py", line 296, in run testMethod() File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/tests/python/gaia-ui-tests/gaiatest/tests/functional/settings/test_settings_bluetooth.py", line 23, in test_toggle_bluetooth_settings self.assertFalse(self.data_layer.bluetooth_is_enabled) File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/tests/python/gaia-ui-tests/gaiatest/gaia_test.py", line 360, in bluetooth_is_enabled return self.marionette.execute_script("return GaiaDataLayer.getBluetoothDefaultAdapter().state === 'enabled'") File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_driver-1.0.0-py2.7.egg/marionette_driver/marionette.py", line 1634, in execute_script rv = self._send_message("executeScript", body, key="value") File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_driver-1.0.0-py2.7.egg/marionette_driver/decorators.py", line 36, in _ return func(*args, **kwargs) File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_driver-1.0.0-py2.7.egg/marionette_driver/marionette.py", line 716, in _send_message self._handle_error(resp) File "/var/lib/jenkins/jobs/flame-kk.ui.adhoc.bitbar/workspace/.env/lib/python2.7/site-packages/marionette_driver-1.0.0-py2.7.egg/marionette_driver/marionette.py", line 770, in _handle_error raise errors.lookup(error)(message, stacktrace=stacktrace) JavascriptException: JavascriptException: TypeError: GaiaDataLayer.getBluetoothDefaultAdapter(...) is undefined stacktrace: execute_script @gaia_test.py, line 360 inline javascript, line 1061 src: "var __marionetteFunc = function(){return GaiaDataLayer.getBluetoothDefaultAdapter().state === 'enabled'};__marionetteFunc.apply(null, __marionetteParams);" Stack: __marionetteFunc@gaia_test.py:1061:42 @gaia_test.py:1061:106
Comment 1•9 years ago
|
||
I guess this started failing with bug 1211357. Strange thing is, I thought I implemented v2 in bug 1176527. But with the removal of Gaia UI test, I'm not sure it's useful to keep this test, there is already something similar at: http://mxr.mozilla.org/gaia/source/apps/settings/test/marionette/tests/bluetooth_settings_test.js
Blocks: 1211357
Comment 2•6 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•