Closed
Bug 1059995
Opened 11 years ago
Closed 8 years ago
Have marionette match error codes from w3c spec
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: mdas, Unassigned)
Details
(Keywords: pi-marionette-client, pi-marionette-server, pi-marionette-spec, Whiteboard: [spec])
Attachments
(1 file)
1.16 KB,
patch
|
automatedtester
:
review-
|
Details | Diff | Splinter Review |
we currently don't match all the errors here: https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#status-codes like 'unsupported operation'.
![]() |
||
Updated•11 years ago
|
Assignee: nobody → rwood
![]() |
||
Comment 1•11 years ago
|
||
The following error codes are missing:
invalid argument
invalid sessionid
session not created
unsupported operation
Referring to this link:
https://selenium.googlecode.com/git/docs/api/py/webdriver_remote/selenium.webdriver.remote.errorhandler.html
'unsupported operation' = METHOD_NOT_ALLOWED (405)
However the other errors mentioned above are not in the list. What should I use for the actual error code values? Is there another doc somewhere that I am missing?
Flags: needinfo?(mdas)
![]() |
Reporter | |
Comment 2•11 years ago
|
||
(In reply to Robert Wood [:rwood] from comment #1)
> The following error codes are missing:
>
> invalid argument
> invalid sessionid
> session not created
> unsupported operation
>
> Referring to this link:
>
> https://selenium.googlecode.com/git/docs/api/py/webdriver_remote/selenium.
> webdriver.remote.errorhandler.html
>
> 'unsupported operation' = METHOD_NOT_ALLOWED (405)
>
> However the other errors mentioned above are not in the list. What should I
> use for the actual error code values? Is there another doc somewhere that I
> am missing?
Not sure if we should be following selenium's guide. This is more of a placeholder until webdriver defines the exact error codes. Perhaps David can tell us more about the error codes.
Flags: needinfo?(mdas) → needinfo?(dburns)
![]() |
||
Comment 3•11 years ago
|
||
Error codes are no more! Long live Error Codes!
In one of the earlier W3C meetings Hixie recommended that we don't use Error codes and use Error messages. I am happy for you to add the error codes (of your own choosing) because when https://bugzilla.mozilla.org/show_bug.cgi?id=945729 lands we will be ripping them out for the pure status message approach.
Flags: needinfo?(dburns)
![]() |
||
Comment 5•11 years ago
|
||
Comment on attachment 8482724 [details] [diff] [review]
bug1059995.patch
Happy with the error codes but we should also handle them.
http://dxr.mozilla.org/mozilla-central/source/testing/marionette/client/marionette/marionette.py#664 should be updated with conditionals to handle them so that future patches have the necessary pieces.
Attachment #8482724 -
Flags: review?(dburns) → review-
![]() |
||
Comment 6•11 years ago
|
||
(In reply to David Burns :automatedtester from comment #5)
> Comment on attachment 8482724 [details] [diff] [review]
> bug1059995.patch
>
> Happy with the error codes but we should also handle them.
>
> http://dxr.mozilla.org/mozilla-central/source/testing/marionette/client/
> marionette/marionette.py#664 should be updated with conditionals to handle
> them so that future patches have the necessary pieces.
Ok thanks David. UNSUPPORTED_OPERATION will be added as part of bug 1045103 as it is required there. Will leave this bug open for the remaining error codes.
![]() |
Reporter | |
Comment 7•11 years ago
|
||
From https://bugzilla.mozilla.org/show_bug.cgi?id=1065933#c69, I'll move the conversation here. I prefer numbers to strings so there's less data to send over the wire, and less characters to compare when checking strings. It's not a strong preference though
![]() |
||
Updated•11 years ago
|
![]() |
||
Updated•10 years ago
|
Assignee: rwood → nobody
![]() |
||
Comment 8•8 years ago
|
||
a lot of work has happened in this area so going to assume it doing the right thing currently
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Updated•8 years ago
|
Resolution: WONTFIX → WORKSFORME
Updated•3 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•