Package io.cucumber.plugin.event
Interface Step
@API(status=STABLE)
public interface Step
Represents a step in a scenario.
-
Method Details
-
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
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