public class Scenario extends BDDDocumentItem<ParentStep>
| Constructor and Description |
|---|
Scenario() |
| Modifier and Type | Method and Description |
|---|---|
List<Step> |
getFlattenSteps()
Returns the list of the descendant steps, collected into a flat list.
|
List<Step> |
getFlattenSteps(boolean includeParentSteps)
Returns the list of the descendant steps, collected into a flat list.
|
List<String> |
getTags()
Returns the tags of the scenario.
|
boolean |
hasTag()
Are there any tags in the scenario?
|
getDescription, getKeyword, getName, getSteps, hasStep, setDescription, setKeyword, setName, setSteps, toStringpublic boolean hasTag()
true if the scenario has tagspublic List<String> getTags()
public List<Step> getFlattenSteps()
public List<Step> getFlattenSteps(boolean includeParentSteps)
includeParentSteps parameter is true.
Otherwise, only its children will be included.
This method avoids infinite loops caused by recursive step references.includeParentSteps - should the parent steps be included in the result?Created by Kornél Simon, 2022