Closed
Bug 802136
Opened 12 years ago
Closed 12 years ago
[B2G] Killing an app with two open windows does not seem to kill it properly
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: zcampbell, Unassigned)
Details
Attachments
(1 file)
808 bytes,
text/plain
|
Details |
In this test case I am starting marketplace, loading the Persona popup to login and then killing the marketplace app. Upon running the test case a 2nd time the `switch_to_frame(app.frame_id)` step does not work. a stack trace of the 2nd (failing) run is attached below. To replicate: Run the attached test script twice in succession without rebooting the device. ====================================================================== ERROR: test_marketplace (test_marketplace.TestMarketplace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/zacdev/Mozilla/gaia-ui-tests/gaiatest/tests/test_marketplace.py", line 22, in test_marketplace self.marionette.switch_to_frame(app.frame_id) File "/home/zacdev/.virtualenvs/gaia-ui-tests/local/lib/python2.7/site-packages/marionette_client-0.4-py2.7.egg/marionette/marionette.py", line 300, in switch_to_frame response = self._send_message('switchToFrame', 'ok', value=frame) File "/home/zacdev/.virtualenvs/gaia-ui-tests/local/lib/python2.7/site-packages/marionette_client-0.4-py2.7.egg/marionette/marionette.py", line 159, in _send_message raise TimeoutException(message='socket.timeout', status=ErrorCodes.TIMEOUT, stacktrace=None) TEST-UNEXPECTED-FAIL : TimeoutException: socket.timeout ====================================================================== ERROR: test_marketplace (test_marketplace.TestMarketplace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/zacdev/Mozilla/gaia-ui-tests/gaiatest/gaia_test.py", line 154, in tearDown MarionetteTestCase.tearDown(self) File "/home/zacdev/.virtualenvs/gaia-ui-tests/local/lib/python2.7/site-packages/marionette_client-0.4-py2.7.egg/marionette/marionette_test.py", line 120, in tearDown self.marionette.set_context("content") File "/home/zacdev/.virtualenvs/gaia-ui-tests/local/lib/python2.7/site-packages/marionette_client-0.4-py2.7.egg/marionette/marionette.py", line 289, in set_context return self._send_message('setContext', 'ok', value=context) File "/home/zacdev/.virtualenvs/gaia-ui-tests/local/lib/python2.7/site-packages/marionette_client-0.4-py2.7.egg/marionette/marionette.py", line 141, in _send_message raise MarionetteException(message="Please start a session") TEST-UNEXPECTED-FAIL : MarionetteException: Please start a session ----------------------------------------------------------------------
Comment 1•12 years ago
|
||
The attached test works for me after changing one line to: _login_button = ('css selector', 'a.button.browserid') (due to a change in the markup). Please re-open if it continues to fail.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 2•12 years ago
|
||
The locator change came after the bug was raised but this is quite an old bug so I agree now irrelevant.
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•