-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstepDefination.java
More file actions
41 lines (31 loc) · 1.01 KB
/
Copy pathstepDefination.java
File metadata and controls
41 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package stepDefination;
import cucumber.api.PendingException;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.When;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.And;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
public class stepDefination {
@Given("^user is on landing page$")
public void user_is_on_landing_page() throws Throwable {
throw new PendingException();
//go to login page
}
@When("^user logs in username and password$")
public void user_logs_in_username_and_password() throws Throwable {
throw new PendingException();
//Login
}
@Then("^home page is populated$")
public void home_page_is_populated() throws Throwable {
throw new PendingException();
//validate home page
}
@And("^cards are displayed$")
public void cards_are_displayed() throws Throwable {
throw new PendingException();
//validate cards
}
}