Package io.karatelabs.gherkin
Class Scenario
java.lang.Object
io.karatelabs.gherkin.Scenario
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy(int exampleIndex) static ScenariocreateError(Feature feature, String errorName, int line) Create a synthetic error scenario for error reporting when execution fails.intintgetLine()getName()getRefId()getStepByLine(int line) getSteps()getTags()Returns the effective tags for this scenario, including inherited feature-level tags.booleanbooleanbooleanisFail()booleanisIgnore()Returns true if this scenario (or its feature) has the @ignore tag.booleanbooleanisSetup()voidvoidsetDescription(String description) voidsetDynamicExpression(String dynamicExpression) voidsetExampleData(Map<String, Object> exampleData) voidsetLine(int line) voidvoidsetSelected(Boolean selected) voidvoidtoString()
-
Constructor Details
-
Scenario
-
-
Method Details
-
createError
Create a synthetic error scenario for error reporting when execution fails. Used when a feature fails before any scenario can be executed (e.g., dynamic expression evaluation failure).- Parameters:
feature- the feature that failederrorName- the name to use for the error scenarioline- the line number- Returns:
- a synthetic Scenario for error reporting
-
isEqualTo
-
getNameAndDescription
-
getRefIdAndName
-
copy
-
replace
-
getStepByLine
-
getRefId
-
getDebugInfo
-
getUniqueId
-
getBackgroundSteps
-
getStepsIncludingBackground
-
getSection
-
getFeature
-
getLine
public int getLine() -
setLine
public void setLine(int line) -
getTags
-
setTags
-
getSelected
-
setSelected
-
getName
-
setName
-
getDescription
-
setDescription
-
getSteps
-
setSteps
-
isOutlineExample
public boolean isOutlineExample() -
isDynamic
public boolean isDynamic() -
getDynamicExpression
-
setDynamicExpression
-
getExampleData
-
setExampleData
-
getExampleIndex
public int getExampleIndex() -
toString
-
getUriToLineNumber
-
isSetup
public boolean isSetup() -
isFail
public boolean isFail() -
getTagsEffective
Returns the effective tags for this scenario, including inherited feature-level tags. Feature tags are merged with scenario-level tags. -
isIgnore
public boolean isIgnore()Returns true if this scenario (or its feature) has the @ignore tag.
-