Package org.jbehave.core.embedder
Class PerformableTree.RunContext
java.lang.Object
org.jbehave.core.embedder.PerformableTree.RunContext
- Enclosing class:
- PerformableTree
The context for running a story.
-
Constructor Summary
ConstructorsConstructorDescriptionRunContext(Configuration configuration, AllStepCandidates allStepCandidates, EmbedderMonitor embedderMonitor, MetaFilter filter, BatchFailures failures) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFailure(Story story) voidaddFailure(Story story, Throwable cause) afterScenarioSteps(Meta storyAndScenarioMeta, ScenarioType type) afterStorySteps(Meta storyMeta) beforeScenarioSteps(Meta storyAndScenarioMeta, ScenarioType type) beforeStorySteps(Meta storyMeta) voidcancelStory(Story story, StoryDuration storyDuration) childContextFor(GivenStory givenStory) voidcurrentPath(String path) booleandryRun()booleanfailed(PerformableTree.State state) failure(PerformableTree.State state) booleanfilter()booleanbooleanbooleanvoidbooleanisCancelled(Story story) booleanpath()voidpendingSteps(List<StepCreator.PendingStep> pendingSteps) reporter()voidReset all the existing failures.voidresetFailures(Story story) Resets only the failures corresponding to the given story.voidbooleanbooleanstate()voidstateIs(PerformableTree.State state) status(PerformableTree.State initial) storyDuration(Story story)
-
Constructor Details
-
RunContext
public RunContext(Configuration configuration, AllStepCandidates allStepCandidates, EmbedderMonitor embedderMonitor, MetaFilter filter, BatchFailures failures)
-
-
Method Details
-
stepsContext
-
restartScenario
public boolean restartScenario() -
restartStory
public boolean restartStory() -
currentPath
-
interruptIfCancelled
- Throws:
InterruptedException
-
dryRun
public boolean dryRun() -
configuration
-
givenStory
public boolean givenStory() -
path
-
filter
-
filter
-
beforeStoriesSteps
-
afterStoriesSteps
-
beforeStorySteps
-
afterStorySteps
-
beforeScenarioSteps
public PerformableTree.PerformableSteps beforeScenarioSteps(Meta storyAndScenarioMeta, ScenarioType type) -
afterScenarioSteps
public PerformableTree.PerformableSteps afterScenarioSteps(Meta storyAndScenarioMeta, ScenarioType type) -
childContextFor
-
cancelStory
-
isCancelled
-
storyDuration
-
state
-
stateIs
-
failureOccurred
public boolean failureOccurred() -
resetState
public void resetState() -
resetFailures
public void resetFailures()Reset all the existing failures. -
resetFailures
Resets only the failures corresponding to the given story.- Parameters:
story- the story for which we want to remove the failures.
-
reporter
-
failed
-
failure
-
addFailure
-
addFailure
-
pendingSteps
-
hasPendingSteps
public boolean hasPendingSteps() -
isStoryPending
public boolean isStoryPending() -
hasFailed
public boolean hasFailed() -
status
-
getFilter
-
getFailures
-
embedderMonitor
-