Closed Bug 1543671 Opened 6 years ago Closed 6 years ago

Intermittent /webdriver/tests/set_timeouts/user_prompts.py | test_accept[capabilities0-alert] - setup error

Categories

(Remote Protocol :: Marionette, defect, P5)

Version 3
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure, regression)

#[markdown(off)]
Filed by: aciure [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=239644627&repo=mozilla-central

https://queue.taskcluster.net/v1/task/Seg0WFkRR5SDfBfgNDaAyA/runs/0/artifacts/public/logs/live_backing.log

12:16:23 INFO - STDOUT: <undetermined location>
12:16:23 INFO - STDOUT: Module already imported so cannot be rewritten: mozlog
12:16:23 INFO - STDOUT: Module already imported so cannot be rewritten: tests.support.fixtures
12:16:23 INFO - STDOUT: -- Docs: http://doc.pytest.org/en/latest/warnings.html
12:16:23 INFO - STDOUT: =============== 17 passed, 2 warnings, 1 error in 92.95 seconds ===============
12:16:23 INFO -
12:16:23 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/set_timeouts/user_prompts.py | test_accept[capabilities0-alert] - setup error
12:16:23 INFO - capabilities = {'unhandledPromptBehavior': 'accept'}
12:16:23 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': 'Z:\task_1554980913\build\application\firefox\firefox.exe', 'prefs'...orm.test,xn--lve-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444}
12:16:23 INFO - request = <SubRequest 'session' for <Function 'test_accept[capabilities0-alert]'>>
12:16:23 INFO -
12:16:23 INFO - @pytest.fixture(scope="function")
12:16:23 INFO - def session(capabilities, configuration, request):
12:16:23 INFO - """Create and start a session for a test that does not itself test session creation.
12:16:23 INFO -
12:16:23 INFO - By default the session will stay open after each test, but we always try to start a
12:16:23 INFO - new one and assume that if that fails there is already a valid session. This makes it
12:16:23 INFO - possible to recover from some errors that might leave the session in a bad state, but
12:16:23 INFO - does not demand that we start a new session per test."""
12:16:23 INFO - global _current_session
12:16:23 INFO -
12:16:23 INFO - # Update configuration capabilities with custom ones from the
12:16:23 INFO - # capabilities fixture, which can be set by tests
12:16:23 INFO - caps = copy.deepcopy(configuration["capabilities"])
12:16:23 INFO - caps.update(capabilities)
12:16:23 INFO - caps = {"alwaysMatch": caps}
12:16:23 INFO -
12:16:23 INFO - # If there is a session with different capabilities active, end it now
12:16:23 INFO - if _current_session is not None and (
12:16:23 INFO - caps != _current_session.requested_capabilities):
12:16:23 INFO - _current_session.end()
12:16:23 INFO - _current_session = None
12:16:23 INFO -
12:16:23 INFO - if _current_session is None:
12:16:23 INFO - _current_session = webdriver.Session(
12:16:23 INFO - configuration["host"],
12:16:23 INFO - configuration["port"],
12:16:23 INFO - capabilities=caps)
12:16:23 INFO - try:
12:16:23 INFO - > _current_session.start()
12:16:23 INFO -
12:16:23 INFO - capabilities = {'unhandledPromptBehavior': 'accept'}
12:16:23 INFO - caps = {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1554980913\build\application\firefox\firefox.exe', 'prefs':...m.test,xn--lve-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}, 'unhandledPromptBehavior': 'accept'}}
12:16:23 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': 'Z:\task_1554980913\build\application\firefox\firefox.exe', 'prefs'...orm.test,xn--lve-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444}
12:16:23 INFO - request = <SubRequest 'session' for <Function 'test_accept[capabilities0-alert]'>>
12:16:23 INFO -
12:16:23 INFO - tests\web-platform\tests\webdriver\tests\support\fixtures.py:150:

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.