Discussion:
[Cucumber] Code is not getting executed, every time it is skipping
(too old to reply)
prashant sinha
2018-07-19 16:15:54 UTC
Permalink
Raw Message
1 Scenarios (ᅵ[33m1 undefinedᅵ[0m)
5 Steps (ᅵ[33m5 undefinedᅵ[0m)
0m0.000s

You can implement missing steps with the snippets below:

@given <https://github.com/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 <https://github.com/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 <https://github.com/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 <https://github.com/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 <https://github.com/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
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Oleg Manzhos
2018-07-27 07:28:18 UTC
Permalink
Raw Message
Hey,

Use When steps for actions and Then for verification. Then title is.... When user clicks Login button.
Post by prashant sinha
1 Scenarios (ᅵ[33m1 undefinedᅵ[0m)
5 Steps (ᅵ[33m5 undefinedᅵ[0m)
0m0.000s
@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
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kalpesh Shah
2018-07-27 16:54:45 UTC
Permalink
Raw Message
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?
Post by prashant sinha
1 Scenarios (ᅵ[33m1 undefinedᅵ[0m)
5 Steps (ᅵ[33m5 undefinedᅵ[0m)
0m0.000s
@given <https://github.com/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 <https://github.com/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 <https://github.com/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 <https://github.com/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 <https://github.com/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
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...