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.record_wpr</title> | 3 <html><head><title>Python: module telemetry.page.record_wpr</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>.record_wpr</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>.record_wpr</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/record_wpr.py">telemetry/page/record_wpr.py</a></font></td></
tr></table> | 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/page/record_wpr.py">telemetry/page/record_wpr.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 <a href="json.html">json</a><br> |
24 <a href="logging.html">logging</a><br> | 25 <a href="logging.html">logging</a><br> |
25 <a href="os.html">os</a><br> | 26 <a href="os.html">os</a><br> |
26 </td><td width="25%" valign=top><a href="telemetry.page.page_measurement.html">t
elemetry.page.page_measurement</a><br> | 27 </td><td width="25%" valign=top><a href="telemetry.page.page_measurement.html">t
elemetry.page.page_measurement</a><br> |
| 28 <a href="telemetry.page.page_measurement_results.html">telemetry.page.page_measu
rement_results</a><br> |
27 <a href="telemetry.page.page_runner.html">telemetry.page.page_runner</a><br> | 29 <a href="telemetry.page.page_runner.html">telemetry.page.page_runner</a><br> |
28 <a href="telemetry.page.page_set.html">telemetry.page.page_set</a><br> | 30 <a href="telemetry.page.page_set.html">telemetry.page.page_set</a><br> |
29 <a href="telemetry.page.page_test.html">telemetry.page.page_test</a><br> | 31 <a href="telemetry.page.page_test.html">telemetry.page.page_test</a><br> |
30 </td><td width="25%" valign=top><a href="sys.html">sys</a><br> | 32 </td><td width="25%" valign=top><a href="telemetry.page.profile_creator.html">te
lemetry.page.profile_creator</a><br> |
| 33 <a href="sys.html">sys</a><br> |
31 <a href="tempfile.html">tempfile</a><br> | 34 <a href="tempfile.html">tempfile</a><br> |
32 <a href="telemetry.test.html">telemetry.test</a><br> | 35 <a href="telemetry.test.html">telemetry.test</a><br> |
33 <a href="time.html">time</a><br> | 36 <a href="telemetry.page.test_expectations.html">telemetry.page.test_expectations
</a><br> |
34 </td><td width="25%" valign=top><a href="telemetry.core.wpr_modes.html">telemetr
y.core.wpr_modes</a><br> | 37 </td><td width="25%" valign=top><a href="time.html">time</a><br> |
| 38 <a href="urlparse.html">urlparse</a><br> |
| 39 <a href="telemetry.core.util.html">telemetry.core.util</a><br> |
| 40 <a href="telemetry.core.wpr_modes.html">telemetry.core.wpr_modes</a><br> |
35 </td></tr></table></td></tr></table><p> | 41 </td></tr></table></td></tr></table><p> |
36 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 42 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
37 <tr bgcolor="#ee77aa"> | 43 <tr bgcolor="#ee77aa"> |
38 <td colspan=3 valign=bottom> <br> | 44 <td colspan=3 valign=bottom> <br> |
39 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> | 45 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> |
40 | 46 |
41 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> | 47 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> |
42 <td width="100%"><dl> | 48 <td width="100%"><dl> |
43 <dt><font face="helvetica, arial"><a href="telemetry.page.page_test.html#PageTes
t">telemetry.page.page_test.PageTest</a>(<a href="__builtin__.html#object">__bui
ltin__.object</a>) | 49 <dt><font face="helvetica, arial"><a href="telemetry.page.page_test.html#PageTes
t">telemetry.page.page_test.PageTest</a>(<a href="telemetry.core.command_line.ht
ml#ArgumentHandlerMixIn">telemetry.core.command_line.ArgumentHandlerMixIn</a>) |
44 </font></dt><dd> | 50 </font></dt><dd> |
45 <dl> | 51 <dl> |
46 <dt><font face="helvetica, arial"><a href="telemetry.page.record_wpr.html#Record
Page">RecordPage</a> | 52 <dt><font face="helvetica, arial"><a href="telemetry.page.record_wpr.html#Record
Page">RecordPage</a> |
47 </font></dt></dl> | 53 </font></dt></dl> |
48 </dd> | 54 </dd> |
49 </dl> | 55 </dl> |
50 <p> | 56 <p> |
51 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 57 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
52 <tr bgcolor="#ffc8d8"> | 58 <tr bgcolor="#ffc8d8"> |
53 <td colspan=3 valign=bottom> <br> | 59 <td colspan=3 valign=bottom> <br> |
54 <font color="#000000" face="helvetica, arial"><a name="RecordPage">class <strong
>RecordPage</strong></a>(<a href="telemetry.page.page_test.html#PageTest">teleme
try.page.page_test.PageTest</a>)</font></td></tr> | 60 <font color="#000000" face="helvetica, arial"><a name="RecordPage">class <strong
>RecordPage</strong></a>(<a href="telemetry.page.page_test.html#PageTest">teleme
try.page.page_test.PageTest</a>)</font></td></tr> |
55 | 61 |
56 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> | 62 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
57 <td width="100%"><dl><dt>Method resolution order:</dt> | 63 <td width="100%"><dl><dt>Method resolution order:</dt> |
58 <dd><a href="telemetry.page.record_wpr.html#RecordPage">RecordPage</a></dd> | 64 <dd><a href="telemetry.page.record_wpr.html#RecordPage">RecordPage</a></dd> |
59 <dd><a href="telemetry.page.page_test.html#PageTest">telemetry.page.page_test.Pa
geTest</a></dd> | 65 <dd><a href="telemetry.page.page_test.html#PageTest">telemetry.page.page_test.Pa
geTest</a></dd> |
| 66 <dd><a href="telemetry.core.command_line.html#ArgumentHandlerMixIn">telemetry.co
re.command_line.ArgumentHandlerMixIn</a></dd> |
60 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> | 67 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
61 </dl> | 68 </dl> |
62 <hr> | 69 <hr> |
63 Methods defined here:<br> | 70 Methods defined here:<br> |
64 <dl><dt><a name="RecordPage-CanRunForPage"><strong>CanRunForPage</strong></a>(se
lf, page)</dt></dl> | 71 <dl><dt><a name="RecordPage-CanRunForPage"><strong>CanRunForPage</strong></a>(se
lf, page)</dt></dl> |
65 | 72 |
66 <dl><dt><a name="RecordPage-CustomizeBrowserOptionsForPage"><strong>CustomizeBro
wserOptionsForPage</strong></a>(self, page, options)</dt></dl> | 73 <dl><dt><a name="RecordPage-CustomizeBrowserOptionsForPageSet"><strong>Customize
BrowserOptionsForPageSet</strong></a>(self, pset, options)</dt></dl> |
67 | 74 |
68 <dl><dt><a name="RecordPage-Run"><strong>Run</strong></a>(self, options, page, t
ab, results)</dt></dl> | 75 <dl><dt><a name="RecordPage-DidNavigateToPage"><strong>DidNavigateToPage</strong
></a>(self, page, tab)</dt><dd><tt>Forward the call to the&n
bsp;test.</tt></dd></dl> |
| 76 |
| 77 <dl><dt><a name="RecordPage-Run"><strong>Run</strong></a>(self, page, tab, resul
ts)</dt></dl> |
| 78 |
| 79 <dl><dt><a name="RecordPage-WillNavigateToPage"><strong>WillNavigateToPage</stro
ng></a>(self, page, tab)</dt><dd><tt>Override to ensure all
resources are fetched from network.</tt></dd></dl> |
69 | 80 |
70 <dl><dt><a name="RecordPage-__init__"><strong>__init__</strong></a>(self, measur
ements)</dt></dl> | 81 <dl><dt><a name="RecordPage-__init__"><strong>__init__</strong></a>(self, measur
ements)</dt></dl> |
71 | 82 |
72 <hr> | 83 <hr> |
73 Methods inherited from <a href="telemetry.page.page_test.html#PageTest">telemetr
y.page.page_test.PageTest</a>:<br> | 84 Methods inherited from <a href="telemetry.page.page_test.html#PageTest">telemetr
y.page.page_test.PageTest</a>:<br> |
74 <dl><dt><a name="RecordPage-AddCommandLineOptions"><strong>AddCommandLineOptions
</strong></a>(self, parser)</dt><dd><tt>Override to expose comman
d-line options for this test.<br> | 85 <dl><dt><a name="RecordPage-CleanUpAfterPage"><strong>CleanUpAfterPage</strong><
/a>(self, page, tab)</dt><dd><tt>Called after the test run&n
bsp;method was run, even if it failed.</tt></dd></
dl> |
75 <br> | |
76 The provided parser is an optparse.OptionParser in
stance and accepts all<br> | |
77 normal results. The parsed options are available&n
bsp;in Run as<br> | |
78 self.<strong>options</strong>.</tt></dd></dl> | |
79 | 86 |
80 <dl><dt><a name="RecordPage-AddOutputOptions"><strong>AddOutputOptions</strong><
/a>(self, parser)</dt></dl> | 87 <dl><dt><a name="RecordPage-CreateExpectations"><strong>CreateExpectations</stro
ng></a>(self, page_set)</dt><dd><tt>Override to make this te
st generate its own expectations instead of<br> |
| 88 any that may have been defined in the pa
ge set.</tt></dd></dl> |
81 | 89 |
82 <dl><dt><a name="RecordPage-CreatePageSet"><strong>CreatePageSet</strong></a>(se
lf, args, options)</dt><dd><tt>Override to make this test&nb
sp;generate its own page set instead of<br> | 90 <dl><dt><a name="RecordPage-CreatePageSet"><strong>CreatePageSet</strong></a>(se
lf, args, options)</dt><dd><tt>Override to make this test&nb
sp;generate its own page set instead of<br> |
83 allowing arbitrary page sets entered from the 
;command-line.</tt></dd></dl> | 91 allowing arbitrary page sets entered from the 
;command-line.</tt></dd></dl> |
84 | 92 |
85 <dl><dt><a name="RecordPage-CustomizeBrowserOptions"><strong>CustomizeBrowserOpt
ions</strong></a>(self, options)</dt><dd><tt>Override to add test
-specific options to the BrowserOptions object</tt></dd
></dl> | 93 <dl><dt><a name="RecordPage-CustomizeBrowserOptions"><strong>CustomizeBrowserOpt
ions</strong></a>(self, options)</dt><dd><tt>Override to add test
-specific options to the BrowserOptions object</tt></dd
></dl> |
86 | 94 |
87 <dl><dt><a name="RecordPage-DidNavigateToPage"><strong>DidNavigateToPage</strong
></a>(self, page, tab)</dt><dd><tt>Override to do operations 
;right after the page is navigated, but befor
e<br> | 95 <dl><dt><a name="RecordPage-CustomizeBrowserOptionsForSinglePage"><strong>Custom
izeBrowserOptionsForSinglePage</strong></a>(self, page, options)</dt><dd><tt>Set
options specific to the test and the gi
ven page.<br> |
88 any waiting for completion has occurred.</tt></dd></dl> | 96 <br> |
| 97 This will be called with the current page&nbs
p;when the browser is (re)started.<br> |
| 98 Changing options at this point only makes sen
se if the browser is being<br> |
| 99 restarted for each page. Note that if page&nb
sp;has a startup_url, the browser<br> |
| 100 will always be restarted for each run.</tt></dd></
dl> |
89 | 101 |
90 <dl><dt><a name="RecordPage-DidRunAction"><strong>DidRunAction</strong></a>(self
, page, tab, action)</dt><dd><tt>Override to do operations a
fter running the action on the page.</tt></dd></dl
> | 102 <dl><dt><a name="RecordPage-DidRunAction"><strong>DidRunAction</strong></a>(self
, page, tab, action)</dt><dd><tt>Override to do operations a
fter running the action on the page.</tt></dd></dl
> |
91 | 103 |
92 <dl><dt><a name="RecordPage-DidRunPageSet"><strong>DidRunPageSet</strong></a>(se
lf, tab, results)</dt><dd><tt>Override to do operations afte
r page set is completed, but before browser<b
r> | 104 <dl><dt><a name="RecordPage-DidRunActions"><strong>DidRunActions</strong></a>(se
lf, page, tab)</dt><dd><tt>Override to do operations after&n
bsp;running the actions on the page.</tt></dd></dl> |
93 is torn down.</tt></dd></dl> | 105 |
| 106 <dl><dt><a name="RecordPage-DidRunPageRepeats"><strong>DidRunPageRepeats</strong
></a>(self, page)</dt><dd><tt>Override to do operations afte
r each page is iterated over.</tt></dd></dl> |
| 107 |
| 108 <dl><dt><a name="RecordPage-DidRunTest"><strong>DidRunTest</strong></a>(self, br
owser, results)</dt><dd><tt>Override to do operations after&
nbsp;all page set(s) are completed.<br> |
| 109 <br> |
| 110 This will occur before the browser is torn&nb
sp;down.</tt></dd></dl> |
| 111 |
| 112 <dl><dt><a name="RecordPage-DidStartBrowser"><strong>DidStartBrowser</strong></a
>(self, browser)</dt><dd><tt>Override to customize the brows
er right after it has launched.</tt></dd></dl> |
94 | 113 |
95 <dl><dt><a name="RecordPage-DidStartHTTPServer"><strong>DidStartHTTPServer</stro
ng></a>(self, tab)</dt><dd><tt>Override to do operations aft
er the HTTP server is started.</tt></dd></dl> | 114 <dl><dt><a name="RecordPage-DidStartHTTPServer"><strong>DidStartHTTPServer</stro
ng></a>(self, tab)</dt><dd><tt>Override to do operations aft
er the HTTP server is started.</tt></dd></dl> |
96 | 115 |
97 <dl><dt><a name="RecordPage-NeedsBrowserRestartAfterEachRun"><strong>NeedsBrowse
rRestartAfterEachRun</strong></a>(self, tab)</dt><dd><tt>Override to s
pecify browser restart after each run.</tt></dd></dl> | 116 <dl><dt><a name="RecordPage-IsExiting"><strong>IsExiting</strong></a>(self)</dt>
</dl> |
98 | 117 |
99 <dl><dt><a name="RecordPage-PrepareResults"><strong>PrepareResults</strong></a>(
self, options)</dt></dl> | 118 <dl><dt><a name="RecordPage-RequestExit"><strong>RequestExit</strong></a>(self)<
/dt></dl> |
100 | 119 |
101 <dl><dt><a name="RecordPage-SetUpBrowser"><strong>SetUpBrowser</strong></a>(self
, browser)</dt><dd><tt>Override to customize the browser&nbs
p;right after it has launched.</tt></dd></dl> | 120 <dl><dt><a name="RecordPage-RestartBrowserBeforeEachPage"><strong>RestartBrowser
BeforeEachPage</strong></a>(self)</dt><dd><tt>Should the browser
be restarted for the page?<br> |
| 121 <br> |
| 122 This returns true if the test needs to u
nconditionally restart the<br> |
| 123 browser for each page. It may be called
before the browser is started.</tt></dd></dl> |
102 | 124 |
103 <dl><dt><a name="RecordPage-WillNavigateToPage"><strong>WillNavigateToPage</stro
ng></a>(self, page, tab)</dt><dd><tt>Override to do operations&nb
sp;before the page is navigated.</tt></dd></dl> | 125 <dl><dt><a name="RecordPage-RunNavigateSteps"><strong>RunNavigateSteps</strong><
/a>(self, page, tab)</dt><dd><tt>Navigates the tab to the&nb
sp;page URL attribute.<br> |
| 126 <br> |
| 127 Runs the 'navigate_steps' page attribute as a 
;compound action.</tt></dd></dl> |
| 128 |
| 129 <dl><dt><a name="RecordPage-StopBrowserAfterPage"><strong>StopBrowserAfterPage</
strong></a>(self, browser, page)</dt><dd><tt>Should the browser b
e stopped after the page is run?<br> |
| 130 <br> |
| 131 This is called after a page is run to&nb
sp;decide whether the browser needs to<br> |
| 132 be stopped to clean up its state. If it&
nbsp;is stopped, then it will be<br> |
| 133 restarted to run the next page.<br> |
| 134 <br> |
| 135 A test that overrides this can look at b
oth the page and the browser to<br> |
| 136 decide whether it needs to stop the browser.<
/tt></dd></dl> |
| 137 |
| 138 <dl><dt><a name="RecordPage-TabForPage"><strong>TabForPage</strong></a>(self, pa
ge, browser)</dt><dd><tt>Override to select a different 
;tab for the page. For instance, to<br> |
| 139 create a new tab for every page, return
browser.tabs.New().</tt></dd></dl> |
| 140 |
| 141 <dl><dt><a name="RecordPage-ValidatePageSet"><strong>ValidatePageSet</strong></a
>(self, page_set)</dt><dd><tt>Override to examine the page&n
bsp;set before the test run. Useful for<br> |
| 142 example to validate that the pageset can be&n
bsp;used with the test.</tt></dd></dl> |
104 | 143 |
105 <dl><dt><a name="RecordPage-WillRunAction"><strong>WillRunAction</strong></a>(se
lf, page, tab, action)</dt><dd><tt>Override to do operations 
;before running the action on the page.</tt></dd><
/dl> | 144 <dl><dt><a name="RecordPage-WillRunAction"><strong>WillRunAction</strong></a>(se
lf, page, tab, action)</dt><dd><tt>Override to do operations 
;before running the action on the page.</tt></dd><
/dl> |
106 | 145 |
107 <dl><dt><a name="RecordPage-WillRunPageSet"><strong>WillRunPageSet</strong></a>(
self, tab)</dt><dd><tt>Override to do operations before 
;the page set is navigated.</tt></dd></dl> | 146 <dl><dt><a name="RecordPage-WillRunActions"><strong>WillRunActions</strong></a>(
self, page, tab)</dt><dd><tt>Override to do operations befor
e running the actions on the page.</tt></dd></dl> |
| 147 |
| 148 <dl><dt><a name="RecordPage-WillRunPageRepeats"><strong>WillRunPageRepeats</stro
ng></a>(self, page)</dt><dd><tt>Override to do operations be
fore each page is iterated over.</tt></dd></dl> |
| 149 |
| 150 <dl><dt><a name="RecordPage-WillRunTest"><strong>WillRunTest</strong></a>(self,
options)</dt><dd><tt>Override to do operations before t
he page set(s) are navigated.</tt></dd></dl> |
| 151 |
| 152 <dl><dt><a name="RecordPage-WillStartBrowser"><strong>WillStartBrowser</strong><
/a>(self, browser)</dt><dd><tt>Override to manipulate the br
owser environment before it launches.</tt></dd></dl> |
108 | 153 |
109 <hr> | 154 <hr> |
110 Data descriptors inherited from <a href="telemetry.page.page_test.html#PageTest"
>telemetry.page.page_test.PageTest</a>:<br> | 155 Data descriptors inherited from <a href="telemetry.page.page_test.html#PageTest"
>telemetry.page.page_test.PageTest</a>:<br> |
| 156 <dl><dt><strong>action_name_to_run</strong></dt> |
| 157 </dl> |
| 158 <dl><dt><strong>attempts</strong></dt> |
| 159 <dd><tt>Maximum number of times test will be
attempted.</tt></dd> |
| 160 </dl> |
| 161 <dl><dt><strong>clear_cache_before_each_run</strong></dt> |
| 162 <dd><tt>When set to True, the browser's disk
and memory cache will be cleared<br> |
| 163 before each run.</tt></dd> |
| 164 </dl> |
| 165 <dl><dt><strong>close_tabs_before_run</strong></dt> |
| 166 <dd><tt>When set to True, all tabs are closed
before running the test for the<br> |
| 167 first time.</tt></dd> |
| 168 </dl> |
| 169 <dl><dt><strong>discard_first_result</strong></dt> |
| 170 <dd><tt>When set to True, the first run of&nb
sp;the test is discarded. This is<br> |
| 171 useful for cases where it's desirable to have
some test resource cached so<br> |
| 172 the first run of the test can warm thing
s up.</tt></dd> |
| 173 </dl> |
| 174 <dl><dt><strong>max_errors</strong></dt> |
| 175 <dd><tt>Maximum number of errors allowed for the&n
bsp;page set.</tt></dd> |
| 176 </dl> |
| 177 <dl><dt><strong>max_failures</strong></dt> |
| 178 <dd><tt>Maximum number of failures allowed for the
page set.</tt></dd> |
| 179 </dl> |
| 180 <hr> |
| 181 Class methods inherited from <a href="telemetry.core.command_line.html#ArgumentH
andlerMixIn">telemetry.core.command_line.ArgumentHandlerMixIn</a>:<br> |
| 182 <dl><dt><a name="RecordPage-AddCommandLineArgs"><strong>AddCommandLineArgs</stro
ng></a>(cls, parser)<font color="#909090"><font face="helvetica, arial"> from <a
href="__builtin__.html#type">__builtin__.type</a></font></font></dt><dd><tt>Ove
rride to accept custom command-line arguments.</tt></dd
></dl> |
| 183 |
| 184 <dl><dt><a name="RecordPage-ProcessCommandLineArgs"><strong>ProcessCommandLineAr
gs</strong></a>(cls, parser, args)<font color="#909090"><font face="helvetica, a
rial"> from <a href="__builtin__.html#type">__builtin__.type</a></font></font></
dt><dd><tt>Override to process command-line arguments.<br> |
| 185 <br> |
| 186 We pass in parser so we can call parser.
error().</tt></dd></dl> |
| 187 |
| 188 <hr> |
| 189 Data descriptors inherited from <a href="telemetry.core.command_line.html#Argume
ntHandlerMixIn">telemetry.core.command_line.ArgumentHandlerMixIn</a>:<br> |
111 <dl><dt><strong>__dict__</strong></dt> | 190 <dl><dt><strong>__dict__</strong></dt> |
112 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | 191 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> |
113 </dl> | 192 </dl> |
114 <dl><dt><strong>__weakref__</strong></dt> | 193 <dl><dt><strong>__weakref__</strong></dt> |
115 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | 194 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> |
116 </dl> | 195 </dl> |
117 <dl><dt><strong>action_name_to_run</strong></dt> | |
118 </dl> | |
119 <dl><dt><strong>clear_cache_before_each_run</strong></dt> | |
120 <dd><tt>When set to True, the browser's disk
and memory cache will be cleared<br> | |
121 before each run.</tt></dd> | |
122 </dl> | |
123 <dl><dt><strong>discard_first_result</strong></dt> | |
124 <dd><tt>When set to True, the first run of&nb
sp;the test is discarded. This is<br> | |
125 useful for cases where it's desirable to have
some test resource cached so<br> | |
126 the first run of the test can warm thing
s up.</tt></dd> | |
127 </dl> | |
128 <dl><dt><strong>output_format_choices</strong></dt> | |
129 <dd><tt>Allowed output formats. The default is the
first item in the list.</tt></dd> | |
130 </dl> | |
131 </td></tr></table></td></tr></table><p> | 196 </td></tr></table></td></tr></table><p> |
132 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 197 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
133 <tr bgcolor="#eeaa77"> | 198 <tr bgcolor="#eeaa77"> |
134 <td colspan=3 valign=bottom> <br> | 199 <td colspan=3 valign=bottom> <br> |
135 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
ig></font></td></tr> | 200 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
ig></font></td></tr> |
136 | 201 |
137 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td>
</td> | 202 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td>
</td> |
138 <td width="100%"><dl><dt><a name="-Main"><strong>Main</strong></a>(base_dir)</dt
></dl> | 203 <td width="100%"><dl><dt><a name="-Main"><strong>Main</strong></a>(base_dir)</dt
></dl> |
139 </td></tr></table> | 204 </td></tr></table> |
140 </body></html> | 205 </body></html> |
OLD | NEW |