Hi,
I am working on cucumber basics by refering to videos.
Getting this erro "running the cucumber basic videos. getting warnings "Step 'I live in Moscow' does not have a matching glue code" in the feature file even though I have created matching stepdefnition file for it.
I have refereched and closed-reopened the feature file after adding the complete step defnition file. but still same warnings remain for all lines fo feature file.
feature file
@BookHotel
Scenario: I want to book Hotel
Given I live in Moscow
And I want to go on a holiday
And We are 10 adults
And We want to Book from 10th Aug 2020 to 20th Aug 2020
When I go to travel agent
Then He should be able to help in budget of 1000 USD
And He should provide me option to Cancel
But He should not ask for for more than 300 USD
Step defnition java file
package com.Mycucumber;
import io.cucumber.java.en.And;
import io.cucumber.java.en.But;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
public class MyHoliday {
@Given("I live in Moscow")
public void I_live() {
System.out.println("I live in Moscow");
}
@And ("I want to go on a holiday")
public void i_want() {
System.out.println("I want to go on a holiday");
}
@And ("We are 10 Adults")
public void we_are() {
System.out.println("We are 10 Adults");
}
@And ("We want to Book from 10th Aug 2020 to 20th Aug 2020")
public void we_want_to_Book() {
System.out.println("We want to Book from 10th Aug 2020 to 20th Aug 2020");
}
@When ("When I go to travel agent")
public void i_go() {
System.out.println("When I go to travel agent");
}
@Then("He should be able to help in budget of 1000 USD")
public void He_should() {
System.out.println("He should be able to help in budget of 1000 USD");
}
@And ("He should provide me option to Cancel")
public void He_should_provide() {
System.out.println("He should provide me option to Cancel");
}
@But("He should not ask for for more than 300 USD")
public void He_should_not() {
System.out.println("He should not ask for for more than 300 USD");
}
}