Code is not getting executed, every time it is skipping

204 views
Skip to first unread message

prashant sinha

unread,
Jul 27, 2018, 3:08:09 AM7/27/18
to Cukes

1 Scenarios (�[33m1 undefined�[0m)
5 Steps (�[33m5 undefined�[0m)
0m0.000s

You can implement missing steps with the snippets below:

@given("^User is already on login page$")
public void user_is_already_on_login_page() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}

@when("^Title of login page is FreeCrm$")
public void title_of_login_page_is_FreeCrm() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}

@then("^User enters username and password$")
public void user_enters_username_and_password() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}

@then("^User clicks on the login button$")
public void user_clicks_on_the_login_button() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}

@then("^User is on home page$")
public void user_is_on_home_page() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}

This is my Repo : https://github.com/prashantsinha789/BDDTestFramework

Oleg Manzhos

unread,
Jul 27, 2018, 3:28:24 AM7/27/18
to cu...@googlegroups.com
Hey,

Use When steps for actions and Then for verification. Then title is.... When user clicks Login button.

19 июля 2018 г., в 19:15, prashant sinha <prashant...@gmail.com> написал(а):

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kalpesh Shah

unread,
Jul 30, 2018, 11:22:49 AM7/30/18
to cu...@googlegroups.com
I think your step definitions should be inside feature folder. Can you try moving steps to features folder and see if it resolves the errors?

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages