@API(status=STABLE)
public interface Step
Represents a step in a scenario.
-
Method Summary
Modifier and TypeMethodDescription@Nullable StepArgumentReturns this Gherkin step argument.Returns this steps keyword.default StringDeprecated.intgetLine()Line in the source this step is located in.Location of this step in in the source.getText()Returns this steps text.
-
Method Details
-
getArgument
@Nullable StepArgument getArgument()Returns this Gherkin step argument. Can be either a data table or doc string.- Returns:
- a step argument, null if absent
-
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
-
getKeyword()instead