| |
- __builtin__.object
-
- StoryTest
- exceptions.Exception(exceptions.BaseException)
-
- Failure
class StoryTest(__builtin__.object) |
|
A class for creating story tests.
The overall test run control flow follows this order:
test.WillRunStory
state.WillRunStory
state.RunStory
test.Measure
state.DidRunStory
test.DidRunStory |
|
Methods defined here:
- DidRunStory(self, platform)
- Override to do any action after running the story, e.g., clean up.
This is run after state.DidRunStory. And this is always called even if the
test run failed.
Args:
platform: The platform that the story will run on.
- Measure(self, platform, results)
- Override to take the measurement.
This is run only if state.RunStory is successful.
Args:
platform: The platform that the story will run on.
results: The results of running the story.
- WillRunStory(self, platform)
- Override to do any action before running the story.
This is run before state.WillRunStory.
Args:
platform: The platform that the story will run on.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |