Closed Bug 1546722 Opened 4 months ago Closed 4 months ago

Improve errors in browser-chrome tests

Categories

(Remote Protocol :: Agent, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ato, Assigned: ato)

References

Details

Attachments

(1 file)

The errors in browser-chrome tests frequently display CDP Exception: [object Object] which is quite unhelpful. We can improve this by
making it possible to reconstruct errors we get passed across the
wire.

Assignee: nobody → ato
Status: NEW → ASSIGNED
Type: enhancement → defect
Priority: -- → P1
Blocks: 1535102

We can reconstruct the CDP error and print a better error message
using RemoteAgentError. This is better than the current output,
which in a lot of cases will be "CDP Exception: [object Object]".

A possible future improvement to this involves extending the CDP
protocol to send the individual components of the error individually,
so that we don't have to parse the string.

Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2222d7465ff7
remote: print better errors in browser chrome tests; r=yulia
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.