telemetry.internal.results.page_test_results
index
telemetry/internal/results/page_test_results.py

# Copyright 2014 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
       
catapult_base.cloud_storage
collections
copy
datetime
telemetry.value.failure
telemetry.internal.results.json_output_formatter
logging
random
telemetry.internal.results.progress_reporter
telemetry.value.skip
telemetry.internal.results.story_run
sys
telemetry.value.trace
traceback
telemetry.value

 
Classes
       
__builtin__.object
PageTestResults

 
class PageTestResults(__builtin__.object)
     Methods defined here:
AddProfilingFile(self, page, file_handle)
AddSummaryValue(self, value)
AddValue(self, value)
CleanUp(self)
Clean up any TraceValues contained within this results object.
DidRunPage(self, page)
Args:
  page: The current page under test.
FindAllPageSpecificValuesFromIRNamed(self, tir_label, value_name)
FindAllPageSpecificValuesNamed(self, value_name)
FindAllTraceValues(self)
FindPageSpecificValuesForPage(self, page, value_name)
FindValues(self, predicate)
Finds all values matching the specified predicate.
 
Args:
  predicate: A function that takes a Value and returns a bool.
Returns:
  A list of values matching |predicate|.
PrintSummary(self)
UploadProfilingFilesToCloud(self, bucket)
UploadTraceFilesToCloud(self, bucket)
WillRunPage(self, page)
__copy__(self)
__enter__(self)
__exit__(self, _, __, ___)
__init__(self, output_formatters=None, progress_reporter=None, trace_tag='', output_dir=None, value_can_be_added_predicate=<function <lambda>>)
Args:
  output_formatters: A list of output formatters. The output
      formatters are typically used to format the test results, such
      as CsvPivotTableOutputFormatter, which output the test results as CSV.
  progress_reporter: An instance of progress_reporter.ProgressReporter,
      to be used to output test status/results progressively.
  trace_tag: A string to append to the buildbot trace name. Currently only
      used for buildbot.
  output_dir: A string specified the directory where to store the test
      artifacts, e.g: trace, videos,...
  value_can_be_added_predicate: A function that takes two arguments:
      a value.Value instance (except failure.FailureValue, skip.SkipValue
      or trace.TraceValue) and a boolean (True when the value is part of
      the first result for the story). It returns True if the value
      can be added to the test results and False otherwise.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
all_page_runs
all_page_specific_values
all_summary_values
current_page
current_page_run
failures
pages_that_failed
Returns the set of failed pages.
pages_that_succeeded
Returns the set of pages that succeeded.
pages_to_profiling_files
pages_to_profiling_files_cloud_url
serialized_trace_file_ids_to_paths
skipped_values