public static class PerformableTree.RunContext extends Object
Constructor and Description |
---|
RunContext(Configuration configuration,
List<CandidateSteps> candidateSteps,
EmbedderMonitor embedderMonitor,
MetaFilter filter,
BatchFailures failures) |
public RunContext(Configuration configuration, List<CandidateSteps> candidateSteps, EmbedderMonitor embedderMonitor, MetaFilter filter, BatchFailures failures)
public StepsContext stepsContext()
public boolean restartScenario()
public boolean restartStory()
public void currentPath(String path)
public void interruptIfCancelled() throws InterruptedException
InterruptedException
public boolean dryRun()
public Configuration configuration()
public boolean givenStory()
public String path()
public FilteredStory filter(Story story)
public MetaFilter filter()
public PerformableTree.PerformableSteps beforeOrAfterStoriesSteps(StepCollector.Stage stage)
public PerformableTree.PerformableSteps beforeOrAfterStorySteps(Story story, StepCollector.Stage stage)
public PerformableTree.PerformableSteps beforeOrAfterScenarioSteps(Meta storyAndScenarioMeta, StepCollector.Stage stage, ScenarioType type)
@Deprecated public PerformableTree.PerformableSteps lifecycleSteps(Lifecycle lifecycle, Meta meta, StepCollector.Stage stage)
@Deprecated public PerformableTree.PerformableSteps lifecycleSteps(Lifecycle lifecycle, Meta meta, StepCollector.Stage stage, Scope scope)
@Deprecated public PerformableTree.PerformableSteps scenarioSteps(Scenario scenario, Map<String,String> parameters)
public PerformableTree.RunContext childContextFor(GivenStory givenStory)
public void cancelStory(Story story, StoryDuration storyDuration)
public boolean isCancelled(Story story)
public StoryDuration storyDuration(Story story)
public PerformableTree.State state()
public void stateIs(PerformableTree.State state)
public boolean failureOccurred()
public void resetState()
public void resetFailures()
public void resetFailures(Story story)
story
- the story for which we want to remove the failures.public StoryReporter reporter()
public boolean failed(PerformableTree.State state)
public Throwable failure(PerformableTree.State state)
public void addFailure(Story story)
public void pendingSteps(List<StepCreator.PendingStep> pendingSteps)
public boolean hasPendingSteps()
public boolean isStoryPending()
public boolean hasFailed()
public PerformableTree.Status status(PerformableTree.State initial)
public MetaFilter getFilter()
public BatchFailures getFailures()
public EmbedderMonitor embedderMonitor()
Copyright © 2003–2021. All rights reserved.