Package io.cucumber.plugin.event
Interface Step
-
@API(status=STABLE) public interface StepRepresents a step in a scenario.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StepArgumentgetArgument()Returns this Gherkin step argument.StringgetKeyWord()Returns this steps keyword.intgetLine()Line in the source this step is located in.StringgetText()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
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
-
-