You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
io.cucumber.junit.UndefinedStepException: The step "user is on login page" is undefined. You can implement it using the snippet(s) below:
@given("user is on login page")
public void user_is_on_login_page() {
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
}
Some other steps were also undefined:
@when("user gets the title of the page")
public void user_gets_the_title_of_the_page() {
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
} @then("page title should be {string}")
public void page_title_should_be(String string) {
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
}
The text was updated successfully, but these errors were encountered:
I did the same setup completely and updated Project and no errors, but when i ran from TestRunner not sure why its says the below error
Also my "src/test/java" and "src/test/resources" looks like greyed out, not sure i need to choose any build path, please help me out
Also i added monochrome = true, but still i am seeing the below error on undefined steps
package testrunners;
import org.junit.runner.RunWith;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
@RunWith(Cucumber.class)
@CucumberOptions(features = {"src/test/resources/parallel/LoginPage.feature"},
glue = { "stepdefinitions", "AppHooks" },
plugin = {"pretty"
}
)
public class MyTestRunner {}
Below Issue i am seeing
io.cucumber.junit.UndefinedStepException: The step "user is on login page" is undefined. You can implement it using the snippet(s) below:
@given("user is on login page")
public void user_is_on_login_page() {
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
}
Some other steps were also undefined:
@when("user gets the title of the page")
public void user_gets_the_title_of_the_page() {
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
}
@then("page title should be {string}")
public void page_title_should_be(String string) {
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
}
The text was updated successfully, but these errors were encountered: