Package io.cucumber.plugin.event
Interface PickleStepTestStep
- All Superinterfaces:
TestStep
A pickle test step matches a line in a Gherkin scenario or background.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the arguments provided to the step definition.The pattern or expression used to match the glue code to the Gherkin step.getStep()The matched Gherkin stepDeprecated.intDeprecated.usegetStep()Deprecated.use#getStep()getUri()A uri to to the feature of this step.Methods inherited from interface io.cucumber.plugin.event.TestStep
getCodeLocation, getId
-
Method Details
-
getPattern
String getPattern()The pattern or expression used to match the glue code to the Gherkin step.- Returns:
- a pattern or expression
-
getStep
Step getStep()The matched Gherkin step- Returns:
- the matched step
-
getDefinitionArgument
Returns the arguments provided to the step definition.For example the step definition
Given (.*) pickleswhen matched withGiven 15 pickleswill receive as argument"15".- Returns:
- argument provided to the step definition
-
getStepArgument
Deprecated.usegetStep()Returns arguments provided to the Gherkin step. E.g: a data table or doc string.- Returns:
- arguments provided to the gherkin step.
-
getStepLine
Deprecated.usegetStep()The line in the feature file defining this step.- Returns:
- a line number
-
getUri
URI getUri()A uri to to the feature of this step.- Returns:
- a uri
-
getStepText
Deprecated.use#getStep()The full text of the Gherkin step.- Returns:
- the step text
-
getStep()