telemetry.page.record_wpr
index
telemetry/page/record_wpr.py

# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

 
Modules
       
telemetry.core.browser_options
telemetry.core.discover
logging
os
telemetry.page.page_measurement
telemetry.page.page_runner
telemetry.page.page_set
telemetry.page.page_test
sys
tempfile
telemetry.test
time
telemetry.core.wpr_modes

 
Classes
       
telemetry.page.page_test.PageTest(__builtin__.object)
RecordPage

 
class RecordPage(telemetry.page.page_test.PageTest)
    
Method resolution order:
RecordPage
telemetry.page.page_test.PageTest
__builtin__.object

Methods defined here:
CanRunForPage(self, page)
CustomizeBrowserOptionsForPage(self, page, options)
Run(self, options, page, tab, results)
__init__(self, measurements)

Methods inherited from telemetry.page.page_test.PageTest:
AddCommandLineOptions(self, parser)
Override to expose command-line options for this test.
 
The provided parser is an optparse.OptionParser instance and accepts all
normal results. The parsed options are available in Run as
self.options.
AddOutputOptions(self, parser)
CreatePageSet(self, args, options)
Override to make this test generate its own page set instead of
allowing arbitrary page sets entered from the command-line.
CustomizeBrowserOptions(self, options)
Override to add test-specific options to the BrowserOptions object
DidNavigateToPage(self, page, tab)
Override to do operations right after the page is navigated, but before
any waiting for completion has occurred.
DidRunAction(self, page, tab, action)
Override to do operations after running the action on the page.
DidRunPageSet(self, tab, results)
Override to do operations after page set is completed, but before browser
is torn down.
DidStartHTTPServer(self, tab)
Override to do operations after the HTTP server is started.
NeedsBrowserRestartAfterEachRun(self, tab)
Override to specify browser restart after each run.
PrepareResults(self, options)
SetUpBrowser(self, browser)
Override to customize the browser right after it has launched.
WillNavigateToPage(self, page, tab)
Override to do operations before the page is navigated.
WillRunAction(self, page, tab, action)
Override to do operations before running the action on the page.
WillRunPageSet(self, tab)
Override to do operations before the page set is navigated.

Data descriptors inherited from telemetry.page.page_test.PageTest:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
action_name_to_run
clear_cache_before_each_run
When set to True, the browser's disk and memory cache will be cleared
before each run.
discard_first_result
When set to True, the first run of the test is discarded.  This is
useful for cases where it's desirable to have some test resource cached so
the first run of the test can warm things up.
output_format_choices
Allowed output formats. The default is the first item in the list.

 
Functions
       
Main(base_dir)