org.jbehave.core.embedder
Class StoryRunner
java.lang.Object
org.jbehave.core.embedder.StoryRunner
public class StoryRunner
- extends Object
Runs a Story
, given a Configuration
and a list of CandidateSteps
,
describing the results to the StoryReporter
.
- Author:
- Elizabeth Keogh, Mauro Talevi, Paul Hammant
StoryRunner
public StoryRunner()
runBeforeOrAfterStories
public void runBeforeOrAfterStories(Configuration configuration,
List<CandidateSteps> candidateSteps,
StepCollector.Stage stage)
- Run steps before or after a collection of stories. Steps are execute only once per collection
of stories.
- Parameters:
configuration
- the Configuration used to find the steps to runcandidateSteps
- List of CandidateSteps containing the candidate steps methodsstage
- the Stage
run
public void run(Configuration configuration,
List<CandidateSteps> candidateSteps,
Story story,
MetaFilter filter)
throws Throwable
- Runs a Story with the given configuration and steps.
- Parameters:
configuration
- the Configuration used to run storycandidateSteps
- the List of CandidateSteps containing the candidate steps methodsstory
- the Story to runfilter
- the Filter to apply to the story Meta
- Throws:
Throwable
- if failures occurred and FailureStrategy dictates it to be re-thrown.
storyOfPath
public Story storyOfPath(Configuration configuration,
String storyPath)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2010. All Rights Reserved.