Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: telemetry/telemetry/story/shared_state.py

Issue 2074183002: [telemetry] Try to print browser logs and capture a screenshot upon story failure (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Add DumpStateUponFailure to _FakeBrowser Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « telemetry/telemetry/page/shared_page_state.py ('k') | telemetry/telemetry/testing/browser_test_case.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/story/shared_state.py
diff --git a/telemetry/telemetry/story/shared_state.py b/telemetry/telemetry/story/shared_state.py
index d239f1968aceae9c63e16276c20b00b308bf19c5..8af1d8b5860633fd6d5daa4aa1808ea5565ab9db 100644
--- a/telemetry/telemetry/story/shared_state.py
+++ b/telemetry/telemetry/story/shared_state.py
@@ -66,3 +66,11 @@ class SharedState(object):
This method is styled on unittest.TestCase.tearDownClass.
"""
raise NotImplementedError()
+
+ def DumpStateUponFailure(self, story, results):
+ """ Dump the state upon failure.
+ This method tries to dump as much information about the application under
+ test as possible (output, log, screenshot, etc.) to simplify triaging the
+ failure.
+ """
+ raise NotImplementedError()
« no previous file with comments | « telemetry/telemetry/page/shared_page_state.py ('k') | telemetry/telemetry/testing/browser_test_case.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698