1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.page.page_test_results</title> 4</head><body bgcolor="#f0f0f8"> 5 6<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 7<tr bgcolor="#7799ee"> 8<td valign=bottom> <br> 9<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.page.html"><font color="#ffffff">page</font></a>.page_test_results</strong></big></big></font></td 10><td align=right valign=bottom 11><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/page/page_test_results.py">telemetry/page/page_test_results.py</a></font></td></tr></table> 12 <p><tt># Copyright (c) 2013 The Chromium Authors. All rights reserved.<br> 13# Use of this source code is governed by a BSD-style license that can be<br> 14# found in the LICENSE file.</tt></p> 15<p> 16<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 17<tr bgcolor="#aa55cc"> 18<td colspan=3 valign=bottom> <br> 19<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 20 21<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 22<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="collections.html">collections</a><br> 23<a href="copy.html">copy</a><br> 24</td><td width="25%" valign=top><a href="logging.html">logging</a><br> 25<a href="sys.html">sys</a><br> 26</td><td width="25%" valign=top><a href="traceback.html">traceback</a><br> 27<a href="unittest.html">unittest</a><br> 28</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 29<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 30<tr bgcolor="#ee77aa"> 31<td colspan=3 valign=bottom> <br> 32<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 33 34<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 35<td width="100%"><dl> 36<dt><font face="helvetica, arial"><a href="unittest.result.html#TestResult">unittest.result.TestResult</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 37</font></dt><dd> 38<dl> 39<dt><font face="helvetica, arial"><a href="telemetry.page.page_test_results.html#PageTestResults">PageTestResults</a> 40</font></dt></dl> 41</dd> 42</dl> 43 <p> 44<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 45<tr bgcolor="#ffc8d8"> 46<td colspan=3 valign=bottom> <br> 47<font color="#000000" face="helvetica, arial"><a name="PageTestResults">class <strong>PageTestResults</strong></a>(<a href="unittest.result.html#TestResult">unittest.result.TestResult</a>)</font></td></tr> 48 49<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 50<td width="100%"><dl><dt>Method resolution order:</dt> 51<dd><a href="telemetry.page.page_test_results.html#PageTestResults">PageTestResults</a></dd> 52<dd><a href="unittest.result.html#TestResult">unittest.result.TestResult</a></dd> 53<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 54</dl> 55<hr> 56Methods defined here:<br> 57<dl><dt><a name="PageTestResults-AddError"><strong>AddError</strong></a>(self, page, err)</dt></dl> 58 59<dl><dt><a name="PageTestResults-AddErrorMessage"><strong>AddErrorMessage</strong></a>(self, page, message)</dt></dl> 60 61<dl><dt><a name="PageTestResults-AddFailure"><strong>AddFailure</strong></a>(self, page, err)</dt></dl> 62 63<dl><dt><a name="PageTestResults-AddFailureMessage"><strong>AddFailureMessage</strong></a>(self, page, message)</dt></dl> 64 65<dl><dt><a name="PageTestResults-AddSkip"><strong>AddSkip</strong></a>(self, page, reason)</dt></dl> 66 67<dl><dt><a name="PageTestResults-AddSuccess"><strong>AddSuccess</strong></a>(self, page)</dt></dl> 68 69<dl><dt><a name="PageTestResults-PrintSummary"><strong>PrintSummary</strong></a>(self)</dt></dl> 70 71<dl><dt><a name="PageTestResults-StartTest"><strong>StartTest</strong></a>(self, page)</dt></dl> 72 73<dl><dt><a name="PageTestResults-StopTest"><strong>StopTest</strong></a>(self, page)</dt></dl> 74 75<dl><dt><a name="PageTestResults-__copy__"><strong>__copy__</strong></a>(self)</dt></dl> 76 77<dl><dt><a name="PageTestResults-__init__"><strong>__init__</strong></a>(self, output_stream<font color="#909090">=None</font>)</dt></dl> 78 79<dl><dt><a name="PageTestResults-addSkip"><strong>addSkip</strong></a>(self, test, reason)</dt></dl> 80 81<dl><dt><a name="PageTestResults-addSuccess"><strong>addSuccess</strong></a>(self, test)</dt></dl> 82 83<hr> 84Data descriptors defined here:<br> 85<dl><dt><strong>pages_that_had_errors_or_failures</strong></dt> 86</dl> 87<hr> 88Methods inherited from <a href="unittest.result.html#TestResult">unittest.result.TestResult</a>:<br> 89<dl><dt><a name="PageTestResults-__repr__"><strong>__repr__</strong></a>(self)</dt></dl> 90 91<dl><dt><a name="PageTestResults-addError"><strong>addError</strong></a>(self, *args, **kw)</dt><dd><tt>Called when an error has occurred. 'err' is a tuple of values as<br> 92returned by sys.exc_info().</tt></dd></dl> 93 94<dl><dt><a name="PageTestResults-addExpectedFailure"><strong>addExpectedFailure</strong></a>(self, test, err)</dt><dd><tt>Called when an expected failure/error occured.</tt></dd></dl> 95 96<dl><dt><a name="PageTestResults-addFailure"><strong>addFailure</strong></a>(self, *args, **kw)</dt><dd><tt>Called when an error has occurred. 'err' is a tuple of values as<br> 97returned by sys.exc_info().</tt></dd></dl> 98 99<dl><dt><a name="PageTestResults-addUnexpectedSuccess"><strong>addUnexpectedSuccess</strong></a>(self, *args, **kw)</dt><dd><tt>Called when a test was expected to fail, but succeed.</tt></dd></dl> 100 101<dl><dt><a name="PageTestResults-printErrors"><strong>printErrors</strong></a>(self)</dt><dd><tt>Called by TestRunner after test run</tt></dd></dl> 102 103<dl><dt><a name="PageTestResults-startTest"><strong>startTest</strong></a>(self, test)</dt><dd><tt>Called when the given test is about to be run</tt></dd></dl> 104 105<dl><dt><a name="PageTestResults-startTestRun"><strong>startTestRun</strong></a>(self)</dt><dd><tt>Called once before any tests are executed.<br> 106 <br> 107See startTest for a method called before each test.</tt></dd></dl> 108 109<dl><dt><a name="PageTestResults-stop"><strong>stop</strong></a>(self)</dt><dd><tt>Indicates that the tests should be aborted</tt></dd></dl> 110 111<dl><dt><a name="PageTestResults-stopTest"><strong>stopTest</strong></a>(self, test)</dt><dd><tt>Called when the given test has been run</tt></dd></dl> 112 113<dl><dt><a name="PageTestResults-stopTestRun"><strong>stopTestRun</strong></a>(self)</dt><dd><tt>Called once after all tests are executed.<br> 114 <br> 115See stopTest for a method called after each test.</tt></dd></dl> 116 117<dl><dt><a name="PageTestResults-wasSuccessful"><strong>wasSuccessful</strong></a>(self)</dt><dd><tt>Tells whether or not this result was a success</tt></dd></dl> 118 119<hr> 120Data descriptors inherited from <a href="unittest.result.html#TestResult">unittest.result.TestResult</a>:<br> 121<dl><dt><strong>__dict__</strong></dt> 122<dd><tt>dictionary for instance variables (if defined)</tt></dd> 123</dl> 124<dl><dt><strong>__weakref__</strong></dt> 125<dd><tt>list of weak references to the object (if defined)</tt></dd> 126</dl> 127</td></tr></table></td></tr></table> 128</body></html>