org.jbehave.core.embedder
Class StoryRunner
java.lang.Object
org.jbehave.core.embedder.StoryRunner
public class StoryRunner
- extends java.lang.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StoryRunner
public StoryRunner()
runBeforeOrAfterStories
public void runBeforeOrAfterStories(Configuration configuration,
java.util.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,
java.util.List<CandidateSteps> candidateSteps,
Story story)
throws java.lang.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 run
- Throws:
java.lang.Throwable
- if failures occurred and FailureStrategy dictates it to be re-thrown.
storyOfPath
public Story storyOfPath(Configuration configuration,
java.lang.String storyPath)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2010. All Rights Reserved.