org.jbehave.scenario.parser
Interface ScenarioParser

All Known Implementing Classes:
PatternScenarioParser

public interface ScenarioParser

Parses the scenarios contained in a story from a textual representation.


Method Summary
 StoryDefinition defineStoryFrom(java.lang.String storyAsText)
          Defines story from its textual representation
 StoryDefinition defineStoryFrom(java.lang.String storyAsText, java.lang.String storyPath)
          Defines story from its textual representation and (optional) story path
 

Method Detail

defineStoryFrom

StoryDefinition defineStoryFrom(java.lang.String storyAsText)
Defines story from its textual representation

Parameters:
storyAsText - the textual representation
Returns:
The StoryDefinition

defineStoryFrom

StoryDefinition defineStoryFrom(java.lang.String storyAsText,
                                java.lang.String storyPath)
Defines story from its textual representation and (optional) story path

Parameters:
storyAsText - the textual representation
storyPath - the story path, may be null
Returns:
The StoryDefinition
Since:
2.4


Copyright © 2003-2010. All Rights Reserved.