Closed Bug 1547529 Opened 6 years ago Closed 6 years ago

Intermittent tier 2 /webdriver/tests/get_title/user_prompts.py | test_dismiss[capabilities0-alert-None] - 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: rmaries [at] mozilla.com

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

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

23:26:47 INFO - TEST-START | /webdriver/tests/get_title/user_prompts.py
23:32:02 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/get_title/user_prompts.py | test_dismiss[capabilities0-alert-None] - setup error
23:32:02 INFO - capabilities = {'unhandledPromptBehavior': 'dismiss'}
23:32:02 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': 'Z:\task_1556405762\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}
23:32:02 INFO - request = <SubRequest 'session' for <Function 'test_dismiss[capabilities0-alert-None]'>>
23:32:02 INFO -
23:32:02 INFO - @pytest.fixture(scope="function")
23:32:02 INFO - def session(capabilities, configuration, request):
23:32:02 INFO - """Create and start a session for a test that does not itself test session creation.
23:32:02 INFO -
23:32:02 INFO - By default the session will stay open after each test, but we always try to start a
23:32:02 INFO - new one and assume that if that fails there is already a valid session. This makes it
23:32:02 INFO - possible to recover from some errors that might leave the session in a bad state, but
23:32:02 INFO - does not demand that we start a new session per test."""
23:32:02 INFO - global _current_session
23:32:02 INFO -
23:32:02 INFO - # Update configuration capabilities with custom ones from the
23:32:02 INFO - # capabilities fixture, which can be set by tests
23:32:02 INFO - caps = copy.deepcopy(configuration["capabilities"])
23:32:02 INFO - caps.update(capabilities)
23:32:02 INFO - caps = {"alwaysMatch": caps}
23:32:02 INFO -
23:32:02 INFO - # If there is a session with different capabilities active, end it now
23:32:02 INFO - if _current_session is not None and (
23:32:02 INFO - caps != _current_session.requested_capabilities):
23:32:02 INFO - _current_session.end()
23:32:02 INFO - _current_session = None
23:32:02 INFO -
23:32:02 INFO - if _current_session is None:
23:32:02 INFO - _current_session = webdriver.Session(
23:32:02 INFO - configuration["host"],
23:32:02 INFO - configuration["port"],
23:32:02 INFO - capabilities=caps)
23:32:02 INFO - try:
23:32:02 INFO - > _current_session.start()
23:32:02 INFO -
23:32:02 INFO - capabilities = {'unhandledPromptBehavior': 'dismiss'}
23:32:02 INFO - caps = {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1556405762\build\application\firefox\firefox.exe', 'prefs':....test,xn--lve-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}, 'unhandledPromptBehavior': 'dismiss'}}
23:32:02 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': 'Z:\task_1556405762\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}
23:32:02 INFO - request = <SubRequest 'session' for <Function 'test_dismiss[capabilities0-alert-None]'>>
23:32:02 INFO -
23:32:02 INFO - tests\web-platform\tests\webdriver\tests\support\fixtures.py:150:
23:32:02 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23:32:02 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:421: in start
23:32:02 INFO - value = self.send_command("POST", "session", body=body)
23:32:02 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23:32:02 INFO -
23:32:02 INFO - self = <Session (disconnected)>, method = 'POST', url = 'session'
23:32:02 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1556405762\build\application\firefox\firef...test,xn--lve-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}, 'unhandledPromptBehavior': 'dismiss'}}}
23:32:02 INFO -
23:32:02 INFO - def send_command(self, method, url, body=None):
23:32:02 INFO - """
23:32:02 INFO - Send a command to the remote end and validate its success.
23:32:02 INFO -
23:32:02 INFO - :param method: HTTP method to use in request.
23:32:02 INFO - :param uri: "Command part" of the HTTP request URL,
23:32:02 INFO - e.g. `window/rect`.
23:32:02 INFO - :param body: Optional body of the HTTP request.
23:32:02 INFO -
23:32:02 INFO - :return: `None` if the HTTP response body was empty, otherwise
23:32:02 INFO - the `value` field returned after parsing the response
23:32:02 INFO - body as JSON.
23:32:02 INFO -
23:32:02 INFO - :raises error.WebDriverException: If the remote end returns
23:32:02 INFO - an error.
23:32:02 INFO - :raises ValueError: If the response body does not contain a
23:32:02 INFO - `value` key.
23:32:02 INFO - """
23:32:02 INFO - response = self.transport.send(
23:32:02 INFO - method, url, body,
23:32:02 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
23:32:02 INFO - session=self)
23:32:02 INFO -
23:32:02 INFO - if response.status != 200:
23:32:02 INFO - err = error.from_response(response)
23:32:02 INFO -
23:32:02 INFO - if isinstance(err, error.InvalidSessionIdException):
23:32:02 INFO - # The driver could have already been deleted the session.
23:32:02 INFO - self.session_id = None
23:32:02 INFO -
23:32:02 INFO - > raise err
23:32:02 INFO - E UnknownErrorException: unknown error (500): connection refused
23:32:02 INFO -
23:32:02 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1556405762\build\application\firefox\firef...test,xn--lve-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}, 'unhandledPromptBehavior': 'dismiss'}}}
23:32:02 INFO - err = <UnknownErrorException http_status=500>
23:32:02 INFO - method = 'POST'
23:32:02 INFO - response = <Response status=500 error=<UnknownErrorException http_status=500>>
23:32:02 INFO - self = <Session (disconnected)>
23:32:02 INFO - url = 'session'
23:32:02 INFO -
23:32:02 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:472: UnknownErrorException

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.