OLD | NEW |
1 | 1 |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
3 <html><head><title>Python: module telemetry.page.page_test_runner</title> | 3 <html><head><title>Python: module telemetry.page.page_test_runner</title> |
4 </head><body bgcolor="#f0f0f8"> | 4 </head><body bgcolor="#f0f0f8"> |
5 | 5 |
6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
7 <tr bgcolor="#7799ee"> | 7 <tr bgcolor="#7799ee"> |
8 <td valign=bottom> <br> | 8 <td valign=bottom> <br> |
9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="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 | 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="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 | 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> | 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 Autho
rs. All rights reserved.<br> | 12 <p><tt># Copyright (c) 2012 The Chromium Autho
rs. All rights reserved.<br> |
13 # Use of this source code is governed by
a BSD-style license that can be<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> | 14 # found in the LICENSE file.</tt></p> |
15 <p> | 15 <p> |
16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
17 <tr bgcolor="#aa55cc"> | 17 <tr bgcolor="#aa55cc"> |
18 <td colspan=3 valign=bottom> <br> | 18 <td colspan=3 valign=bottom> <br> |
19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> | 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> |
20 | 20 |
21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> | 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> |
22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="telemetry.core.browser_options.html">telemetry.core.browser_options<
/a><br> | 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><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> | 23 <a href="telemetry.core.discover.html">telemetry.core.discover</a><br> |
24 </td><td width="25%" valign=top><a href="os.html">os</a><br> | 24 <a href="os.html">os</a><br> |
25 <a href="telemetry.page.page_runner.html">telemetry.page.page_runner</a><br> | 25 </td><td width="25%" valign=top><a href="telemetry.page.page_runner.html">teleme
try.page.page_runner</a><br> |
26 </td><td width="25%" valign=top><a href="telemetry.page.page_set.html">telemetry
.page.page_set</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> | 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">tele
metry.core.profile_types</a><br> | 28 </td><td width="25%" valign=top><a href="telemetry.core.profile_types.html">tele
metry.core.profile_types</a><br> |
29 <a href="sys.html">sys</a><br> | 29 <a href="sys.html">sys</a><br> |
30 </td></tr></table></td></tr></table><p> | 30 <a href="telemetry.test.html">telemetry.test</a><br> |
| 31 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> |
31 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 32 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
32 <tr bgcolor="#ee77aa"> | 33 <tr bgcolor="#ee77aa"> |
33 <td colspan=3 valign=bottom> <br> | 34 <td colspan=3 valign=bottom> <br> |
34 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> | 35 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> |
35 | 36 |
36 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> | 37 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> |
37 <td width="100%"><dl> | 38 <td width="100%"><dl> |
38 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.
object</a> | 39 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.
object</a> |
39 </font></dt><dd> | 40 </font></dt><dd> |
40 <dl> | 41 <dl> |
41 <dt><font face="helvetica, arial"><a href="telemetry.page.page_test_runner.html#
PageTestRunner">PageTestRunner</a> | 42 <dt><font face="helvetica, arial"><a href="telemetry.page.page_test_runner.html#
PageTestRunner">PageTestRunner</a> |
42 </font></dt></dl> | 43 </font></dt></dl> |
43 </dd> | 44 </dd> |
44 </dl> | 45 </dl> |
45 <p> | 46 <p> |
46 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 47 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
47 <tr bgcolor="#ffc8d8"> | 48 <tr bgcolor="#ffc8d8"> |
48 <td colspan=3 valign=bottom> <br> | 49 <td colspan=3 valign=bottom> <br> |
49 <font color="#000000" face="helvetica, arial"><a name="PageTestRunner">class <st
rong>PageTestRunner</strong></a>(<a href="__builtin__.html#object">__builtin__.o
bject</a>)</font></td></tr> | 50 <font color="#000000" face="helvetica, arial"><a name="PageTestRunner">class <st
rong>PageTestRunner</strong></a>(<a href="__builtin__.html#object">__builtin__.o
bject</a>)</font></td></tr> |
50 | 51 |
51 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> | 52 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
52 <td width="100%">Methods defined here:<br> | 53 <td width="100%">Methods defined here:<br> |
53 <dl><dt><a name="PageTestRunner-FindTestConstructors"><strong>FindTestConstructo
rs</strong></a>(self, test_dir)</dt></dl> | 54 <dl><dt><a name="PageTestRunner-FindTestConstructors"><strong>FindTestConstructo
rs</strong></a>(self, base_dir)</dt></dl> |
54 | 55 |
55 <dl><dt><a name="PageTestRunner-FindTestName"><strong>FindTestName</strong></a>(
self, test_constructors, args)</dt><dd><tt>Find the test name&nbs
p;in an arbitrary argument list.<br> | 56 <dl><dt><a name="PageTestRunner-FindTestName"><strong>FindTestName</strong></a>(
self, test_constructors, args)</dt><dd><tt>Find the test name&nbs
p;in an arbitrary argument list.<br> |
56 <br> | 57 <br> |
57 We can't use the optparse parser, because the
test may add its own<br> | 58 We can't use the optparse parser, because the
test may add its own<br> |
58 command-line options. If the user passed in a
ny of those, the<br> | 59 command-line options. If the user passed in a
ny of those, the<br> |
59 optparse parsing will fail.<br> | 60 optparse parsing will fail.<br> |
60 <br> | 61 <br> |
61 Returns:<br> | 62 Returns:<br> |
62 test_name or None</tt></dd></dl> | 63 test_name or None</tt></dd></dl> |
63 | 64 |
64 <dl><dt><a name="PageTestRunner-GetModernizedTestName"><strong>GetModernizedTest
Name</strong></a>(self, arg)</dt><dd><tt>Sometimes tests change n
ames but buildbots keep calling the old name.
<br> | 65 <dl><dt><a name="PageTestRunner-GetModernizedTestName"><strong>GetModernizedTest
Name</strong></a>(self, arg)</dt><dd><tt>Sometimes tests change n
ames but buildbots keep calling the old name.
<br> |
65 <br> | 66 <br> |
66 If arg matches an old test name, return
the new test name instead.<br> | 67 If arg matches an old test name, return
the new test name instead.<br> |
67 Otherwise, return the arg.</tt></dd></dl> | 68 Otherwise, return the arg.</tt></dd></dl> |
68 | 69 |
69 <dl><dt><a name="PageTestRunner-GetPageSet"><strong>GetPageSet</strong></a>(self
, test, page_set_filenames)</dt></dl> | 70 <dl><dt><a name="PageTestRunner-GetPageSet"><strong>GetPageSet</strong></a>(self
, test, page_set_filenames)</dt></dl> |
70 | 71 |
71 <dl><dt><a name="PageTestRunner-ParseCommandLine"><strong>ParseCommandLine</stro
ng></a>(self, args, test_dir, profile_creators_dir, page_set_filenames)</dt></dl
> | 72 <dl><dt><a name="PageTestRunner-ParseCommandLine"><strong>ParseCommandLine</stro
ng></a>(self, args, base_dir, page_set_filenames)</dt></dl> |
72 | 73 |
73 <dl><dt><a name="PageTestRunner-PrintParseError"><strong>PrintParseError</strong
></a>(self, message)</dt></dl> | 74 <dl><dt><a name="PageTestRunner-PrintParseError"><strong>PrintParseError</strong
></a>(self, message)</dt></dl> |
74 | 75 |
75 <dl><dt><a name="PageTestRunner-Run"><strong>Run</strong></a>(self, test_dir, pr
ofile_creators_dir, page_set_filenames)</dt></dl> | 76 <dl><dt><a name="PageTestRunner-Run"><strong>Run</strong></a>(self, base_dir, pa
ge_set_filenames)</dt></dl> |
76 | 77 |
77 <dl><dt><a name="PageTestRunner-__init__"><strong>__init__</strong></a>(self)</d
t></dl> | 78 <dl><dt><a name="PageTestRunner-__init__"><strong>__init__</strong></a>(self)</d
t></dl> |
78 | 79 |
79 <hr> | 80 <hr> |
80 Data descriptors defined here:<br> | 81 Data descriptors defined here:<br> |
81 <dl><dt><strong>__dict__</strong></dt> | 82 <dl><dt><strong>__dict__</strong></dt> |
82 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | 83 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> |
83 </dl> | 84 </dl> |
84 <dl><dt><strong>__weakref__</strong></dt> | 85 <dl><dt><strong>__weakref__</strong></dt> |
85 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | 86 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> |
86 </dl> | 87 </dl> |
87 <dl><dt><strong>test_class</strong></dt> | 88 <dl><dt><strong>test_class</strong></dt> |
88 </dl> | 89 </dl> |
89 <dl><dt><strong>test_class_name</strong></dt> | 90 <dl><dt><strong>test_class_name</strong></dt> |
90 </dl> | 91 </dl> |
91 </td></tr></table></td></tr></table><p> | 92 </td></tr></table></td></tr></table><p> |
92 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 93 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
93 <tr bgcolor="#eeaa77"> | 94 <tr bgcolor="#eeaa77"> |
94 <td colspan=3 valign=bottom> <br> | 95 <td colspan=3 valign=bottom> <br> |
95 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
ig></font></td></tr> | 96 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
ig></font></td></tr> |
96 | 97 |
97 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td>
</td> | 98 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td>
</td> |
98 <td width="100%"><dl><dt><a name="-Main"><strong>Main</strong></a>(test_dir, pro
file_creators_dir, page_set_filenames)</dt><dd><tt>Turns a PageTest&nb
sp;into a command-line program.<br> | 99 <td width="100%"><dl><dt><a name="-Main"><strong>Main</strong></a>(base_dir, pag
e_set_filenames)</dt><dd><tt>Turns a PageTest into a co
mmand-line program.<br> |
99 <br> | 100 <br> |
100 Args:<br> | 101 Args:<br> |
101 test_dir: Path to directory containing Page
Tests.<br> | 102 base_dir: Path to directory containing test
s and ProfileCreators.</tt></dd></dl> |
102 profile_creators_dir: Path to a directory c
ontaining ProfileCreators</tt></dd></dl> | |
103 </td></tr></table> | 103 </td></tr></table> |
104 </body></html> | 104 </body></html> |
OLD | NEW |