1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3 <html><head><title>Python: module telemetry.page.page_test_runner</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_runner</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_runner.py">telemetry/page/page_test_runner.py</a></font></td></tr></table> 12 <p><tt># Copyright (c) 2012 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="telemetry.core.browser_options.html">telemetry.core.browser_options</a><br> 23 <a href="telemetry.core.discover.html">telemetry.core.discover</a><br> 24 <a href="os.html">os</a><br> 25 </td><td width="25%" valign=top><a href="telemetry.page.page_runner.html">telemetry.page.page_runner</a><br> 26 <a href="telemetry.page.page_set.html">telemetry.page.page_set</a><br> 27 <a href="telemetry.page.page_test.html">telemetry.page.page_test</a><br> 28 </td><td width="25%" valign=top><a href="telemetry.core.profile_types.html">telemetry.core.profile_types</a><br> 29 <a href="sys.html">sys</a><br> 30 <a href="telemetry.test.html">telemetry.test</a><br> 31 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 32 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 33 <tr bgcolor="#ee77aa"> 34 <td colspan=3 valign=bottom> <br> 35 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 36 37 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 38 <td width="100%"><dl> 39 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> 40 </font></dt><dd> 41 <dl> 42 <dt><font face="helvetica, arial"><a href="telemetry.page.page_test_runner.html#PageTestRunner">PageTestRunner</a> 43 </font></dt></dl> 44 </dd> 45 </dl> 46 <p> 47 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 48 <tr bgcolor="#ffc8d8"> 49 <td colspan=3 valign=bottom> <br> 50 <font color="#000000" face="helvetica, arial"><a name="PageTestRunner">class <strong>PageTestRunner</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> 51 52 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 53 <td width="100%">Methods defined here:<br> 54 <dl><dt><a name="PageTestRunner-FindTestConstructors"><strong>FindTestConstructors</strong></a>(self, base_dir)</dt></dl> 55 56 <dl><dt><a name="PageTestRunner-FindTestName"><strong>FindTestName</strong></a>(self, test_constructors, args)</dt><dd><tt>Find the test name in an arbitrary argument list.<br> 57 <br> 58 We can't use the optparse parser, because the test may add its own<br> 59 command-line options. If the user passed in any of those, the<br> 60 optparse parsing will fail.<br> 61 <br> 62 Returns:<br> 63 test_name or None</tt></dd></dl> 64 65 <dl><dt><a name="PageTestRunner-GetModernizedTestName"><strong>GetModernizedTestName</strong></a>(self, arg)</dt><dd><tt>Sometimes tests change names but buildbots keep calling the old name.<br> 66 <br> 67 If arg matches an old test name, return the new test name instead.<br> 68 Otherwise, return the arg.</tt></dd></dl> 69 70 <dl><dt><a name="PageTestRunner-GetPageSet"><strong>GetPageSet</strong></a>(self, test, page_set_filenames)</dt></dl> 71 72 <dl><dt><a name="PageTestRunner-ParseCommandLine"><strong>ParseCommandLine</strong></a>(self, args, base_dir, page_set_filenames)</dt></dl> 73 74 <dl><dt><a name="PageTestRunner-PrintParseError"><strong>PrintParseError</strong></a>(self, message)</dt></dl> 75 76 <dl><dt><a name="PageTestRunner-Run"><strong>Run</strong></a>(self, base_dir, page_set_filenames)</dt></dl> 77 78 <dl><dt><a name="PageTestRunner-__init__"><strong>__init__</strong></a>(self)</dt></dl> 79 80 <hr> 81 Data descriptors defined here:<br> 82 <dl><dt><strong>__dict__</strong></dt> 83 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 84 </dl> 85 <dl><dt><strong>__weakref__</strong></dt> 86 <dd><tt>list of weak references to the object (if defined)</tt></dd> 87 </dl> 88 <dl><dt><strong>test_class</strong></dt> 89 </dl> 90 <dl><dt><strong>test_class_name</strong></dt> 91 </dl> 92 </td></tr></table></td></tr></table><p> 93 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 94 <tr bgcolor="#eeaa77"> 95 <td colspan=3 valign=bottom> <br> 96 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> 97 98 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> 99 <td width="100%"><dl><dt><a name="-Main"><strong>Main</strong></a>(base_dir, page_set_filenames)</dt><dd><tt>Turns a PageTest into a command-line program.<br> 100 <br> 101 Args:<br> 102 base_dir: Path to directory containing tests and ProfileCreators.</tt></dd></dl> 103 </td></tr></table> 104 </body></html>