Closed Bug 940916 Opened 11 years ago Closed 10 years ago

[Marionette] Marionette exception handler

Categories

(Remote Protocol :: Marionette, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 960436

People

(Reporter: wachen, Unassigned)

References

Details

Currently, if there is an exception, marionette client will catch it. Is it possible to have something that provides customized exceptional handler instead of being caught right away?
There's quite a bit of exception handling in the client. Can you explain this problem and your use case in more detail?
Hi Malini,
We are doing long-term test run, for example, run for 10~20 hours without restart or stuck.
There's a couple way to detect, one is to monitor if the test run starts to have consequent fails of time out, for example 5 to 10 times.
In order to get this result, can we register and listen to fail cases, so that we can force to stop and collect entire running time.
If I understand this correctly, it seems reasonable to allow a test runner to register a function that (during the run_tests call here http://mxr.mozilla.org/mozilla-central/source/testing/marionette/client/marionette/runtests.py#527) will be run after each test is run and it can control whether or not we continue to run tests.

Can this wait for https://bugzilla.mozilla.org/show_bug.cgi?id=925398 to land? ETA a week or so. I ask this because this change will be easy to implement when this lands, but if it's needed right now, I can get a patch going for you relatively soon.
Thanks, that's exactly what we need; will wait til it finished.
Depends on: 925398
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.