public class PerformableTree extends Object
PerformableTree.Performable
objects for a set of stories, grouping
sets of performable steps for each story and scenario, and adding before and
after stories steps. The process has two phases:
addStories(RunContext, List)
method.#performBeforeOrAfterStories(RunContext, Stage)
and
perform(RunContext, Story)
methods are executed.PerformableTree.RunContext
for the set of stories being run
but the individual stories can be performed concurrently.Modifier and Type | Class and Description |
---|---|
static class |
PerformableTree.AbstractPerformableScenario |
static class |
PerformableTree.ExamplePerformableScenario |
static class |
PerformableTree.NormalPerformableScenario |
static interface |
PerformableTree.Performable |
static class |
PerformableTree.PerformableRoot |
static class |
PerformableTree.PerformableScenario |
static class |
PerformableTree.PerformableSteps |
static class |
PerformableTree.PerformableStory |
static class |
PerformableTree.RunContext
The context for running a story.
|
static interface |
PerformableTree.State |
static class |
PerformableTree.Status |
static class |
PerformableTree.Timing |
Constructor and Description |
---|
PerformableTree() |
Modifier and Type | Method and Description |
---|---|
void |
addStories(PerformableTree.RunContext context,
List<Story> stories) |
PerformableTree.PerformableRoot |
getRoot() |
PerformableTree.RunContext |
newRunContext(Configuration configuration,
InjectableStepsFactory stepsFactory,
EmbedderMonitor embedderMonitor,
MetaFilter filter,
BatchFailures failures) |
void |
perform(PerformableTree.RunContext context,
Story story) |
void |
performBeforeOrAfterStories(PerformableTree.RunContext context,
StepCollector.Stage stage) |
Story |
storyOfPath(Configuration configuration,
String storyPath)
Returns the parsed story from the given path
|
Story |
storyOfText(Configuration configuration,
String storyAsText,
String storyId)
Returns the parsed story from the given text
|
String |
toString() |
public PerformableTree.PerformableRoot getRoot()
public void addStories(PerformableTree.RunContext context, List<Story> stories)
public Story storyOfPath(Configuration configuration, String storyPath)
configuration
- the Configuration used to run storystoryPath
- the story pathpublic Story storyOfText(Configuration configuration, String storyAsText, String storyId)
configuration
- the Configuration used to run storystoryAsText
- the story textstoryId
- the story Id, which will be returned as story pathpublic void perform(PerformableTree.RunContext context, Story story)
public void performBeforeOrAfterStories(PerformableTree.RunContext context, StepCollector.Stage stage)
public PerformableTree.RunContext newRunContext(Configuration configuration, InjectableStepsFactory stepsFactory, EmbedderMonitor embedderMonitor, MetaFilter filter, BatchFailures failures)
Copyright © 2003–2016. All rights reserved.