Getting Step does not have matching glue code in feature file-Cucumber

Please help me out

Add Comment
  • 1 Answer(s)

    Hi,

    This warning occurs when the line in the feature file is not matches the step definition class related line.

    Eg.:

    If you have this line in the feature file:
    “Then The Url should be blog”

    There should be a related line in the StepDefinition.java file too, like:
    “@Then(“^The Url should be blog$”)
    public void the_Url_should_be_blog() throws Throwable {

    }”

    Hope it helped!

    Default Answered on April 12, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.