Closed Bug 1528462 Opened 5 years ago Closed 5 years ago

Perma Tier2 [Tvw] /webdriver/tests/send_alert_text/send.py | test_alert_unsupported_operation - assert 404 == 500

Categories

(Remote Protocol :: Marionette, defect, P5)

Version 3
defect

Tracking

(firefox67 affected)

RESOLVED DUPLICATE of bug 1528463
Tracking Status
firefox67 --- affected

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure, regression, Whiteboard: [stockwell needswork:owner])

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

https://treeherder.mozilla.org/logviewer.html#?job_id=228806777&repo=autoland

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

08:39:45 INFO - TEST-PASS | /webdriver/tests/send_alert_text/send.py | test_alert_element_not_interactable[confirm]
08:39:45 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/send_alert_text/send.py | test_alert_unsupported_operation - assert 404 == 500
08:39:45 INFO - session = <Session 228a4588-7100-4d41-a5c1-e3c0708dfb0b>
08:39:45 INFO -
08:39:45 INFO - def test_alert_unsupported_operation(session):
08:39:45 INFO - session.url = basic_authentication()
08:39:45 INFO -
08:39:45 INFO - response = send_alert_text(session, "Federer")
08:39:45 INFO - > assert_error(response, "unsupported operation")
08:39:45 INFO -
08:39:45 INFO - response = <Response status=404 error=<NoSuchAlertException http_status=404>>
08:39:45 INFO - session = <Session 228a4588-7100-4d41-a5c1-e3c0708dfb0b>
08:39:45 INFO -
08:39:45 INFO - tests\web-platform\tests\webdriver\tests\send_alert_text\send.py:63:
08:39:45 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
08:39:45 INFO -
08:39:45 INFO - response = <Response status=404 error=<NoSuchAlertException http_status=404>>
08:39:45 INFO - error_code = 'unsupported operation'
08:39:45 INFO -
08:39:45 INFO - def assert_error(response, error_code):
08:39:45 INFO - """
08:39:45 INFO - Verify that the provided webdriver.Response instance described
08:39:45 INFO - a valid error response as defined by `dfn-send-an-error` and
08:39:45 INFO - the provided error code.
08:39:45 INFO -
08:39:45 INFO - :param response: ``webdriver.Response`` instance.
08:39:45 INFO - :param error_code: String value of the expected error code
08:39:45 INFO - """
08:39:45 INFO - > assert response.status == errors[error_code]
08:39:45 INFO - E assert 404 == 500
08:39:45 INFO - E + where 404 = <Response status=404 error=<NoSuchAlertException http_status=404>>.status
08:39:45 INFO -
08:39:45 INFO - error_code = 'unsupported operation'
08:39:45 INFO - response = <Response status=404 error=<NoSuchAlertException http_status=404>>
08:39:45 INFO -
08:39:45 INFO - tests\web-platform\tests\webdriver\tests\support\asserts.py:50: AssertionError

Appeared when Bug 1502360 landed, Henrik, can you take a look?

Blocks: 1502360
Flags: needinfo?(hskupin)
Whiteboard: [stockwell needswork:owner]
See Also: → 1528463

Basically the same as bug 1528463 but it fails when checking for the return value, and not for the failing page to load. Bug 1528463 should fix it.

Depends on: 1528463
Flags: needinfo?(hskupin)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
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.