Package io.cucumber.plugin.event
Interface Step
-
@API(status=STABLE) public interface Step
Represents a step in a scenario.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description StepArgument
getArgument()
Returns this Gherkin step argument.String
getKeyword()
Returns this steps keyword.default String
getKeyWord()
Deprecated.usegetKeyword()
insteadint
getLine()
Line in the source this step is located in.Location
getLocation()
Location of this step in in the source.String
getText()
Returns this steps text.
-
-
-
Method Detail
-
getArgument
StepArgument getArgument()
Returns this Gherkin step argument. Can be either a data table or doc string.- Returns:
- a step argument, null if absent
-
getKeyWord
default String getKeyWord()
Deprecated.usegetKeyword()
insteadReturns this steps keyword. I.e. Given, When, Then.- Returns:
- step key word
-
getKeyword
String getKeyword()
Returns this steps keyword. I.e. Given, When, Then.- Returns:
- step key word
-
getText
String getText()
Returns this steps text.- Returns:
- this steps text
-
getLine
int getLine()
Line in the source this step is located in.- Returns:
- step line number
-
getLocation
Location getLocation()
Location of this step in in the source.- Returns:
- location in the source
-
-