telemetry.internal.story_runner | index telemetry/internal/story_runner.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
`` |  |
telemetry.internal.browser.browser_finder catapult_base.cloud_storage telemetry.internal.util.exception_formatter telemetry.core.exceptions telemetry.value.failure | logging optparse os telemetry.page telemetry.internal.actions.page_action | telemetry.page.page_test telemetry.internal.results.results_options telemetry.value.skip telemetry.story telemetry.web_perf.story_test | sys time telemetry.util.wpr_modes

Classes
`` |  | __builtin__.object StoryGroup exceptions.Exception(exceptions.BaseException) ArchiveError
class ArchiveError(exceptions.Exception)
`` |  | Method resolution order: ArchiveError exceptions.Exception exceptions.BaseException __builtin__.object Data descriptors defined here: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __str__(...) `x.__str__() <==> str(x)` __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class StoryGroup(__builtin__.object)
`` |  | Methods defined here: AddStory(self, story) __init__(self, shared_state_class) Data descriptors defined here: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` shared_state_class stories

Functions
`` |  | AddCommandLineArgs(parser) ProcessCommandLineArgs(parser, args) Run(test, story_set, finder_options, results, max_failures=None) `Runs a given test against a given page_set with the given options. Stop execution for unexpected exceptions such as KeyboardInterrupt. We "white list" certain exceptions for which the story runner can continue running the remaining stories.` RunBenchmark(benchmark, finder_options) `Run this test with the given options. Returns: The number of failure values (up to 254) or 255 if there is an uncaught exception.` StoriesGroupedByStateClass(story_set, allow_multiple_groups) `Returns a list of story groups which each contains stories with the same shared_state_class. Example: Assume A1, A2, A3 are stories with same shared story class, and similar for B1, B2. If their orders in story set is A1 A2 B1 B2 A3, then the grouping will be [A1 A2] [B1 B2] [A3]. It's purposefully done this way to make sure that order of stories are the same of that defined in story_set. It's recommended that stories with the same states should be arranged next to each others in story sets to reduce the overhead of setting up & tearing down the shared story state.`