Interface PickleStepTestStep

All Superinterfaces:
TestStep

@API(status=STABLE) public interface PickleStepTestStep extends TestStep
A pickle test step matches a line in a Gherkin scenario or background.
  • 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

      List<Argument> getDefinitionArgument()
      Returns the arguments provided to the step definition.

      For example the step definition Given (.*) pickles when matched with Given 15 pickles will receive as argument "15".

      Returns:
      argument provided to the step definition
    • getStepArgument

      @Deprecated StepArgument getStepArgument()
      Deprecated.
      Returns arguments provided to the Gherkin step. E.g: a data table or doc string.
      Returns:
      arguments provided to the gherkin step.
    • getStepLine

      @Deprecated int getStepLine()
      Deprecated.
      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 String getStepText()
      Deprecated.
      use #getStep()
      The full text of the Gherkin step.
      Returns:
      the step text