All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cucumber.api.PickleStepTestStep Maven / Gradle / Ivy

There is a newer version: 7.18.0
Show newest version
package cucumber.api;

import java.util.List;

/**
 * A pickle test step matches a line in a Gherkin scenario or background.
 */
public interface PickleStepTestStep extends TestStep {

    /**
     * The pattern or expression used to match the glue code to the Gherkin step.
     *
     * @return a pattern or expression
     */
    String getPattern();

    /**
     * The matched Gherkin step as a compiled Pickle
     *
     * @return the matched step
     */
    gherkin.pickles.PickleStep getPickleStep();


    /**
     * 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"
     *
     * @return argument provided to the step definition
     */
    List getDefinitionArgument();

    /**
     * Returns arguments provided to the Gherkin step. E.g:
     * a data table or doc string.
     *
     * @return arguments provided to the gherkin step.
     */

    List getStepArgument();

    /**
     * The line in the feature file defining this step.
     *
     * @return a line number
     */
    int getStepLine();

    /**
     * A uri to to the feature and line of this step.
     *
     * @return a uri
     */
    String getStepLocation();

    /**
     * The full text of the Gherkin step.
     *
     * @return the step text
     */
    String getStepText();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy