forked from revaturelabs/rideshare-user-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Batch-697-Adam-Ranieri/domi
should be able to do cucumber stuffs
- Loading branch information
Showing
6 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Feature: | ||
Background: On homepage | ||
Given: The user is on the Rideshare homepage | ||
Scenario: User Logins in | ||
When: The user clicks on Login Button | ||
Then: | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.revature.pages; | ||
|
||
import org.openqa.selenium.WebDriver; | ||
import org.openqa.selenium.support.PageFactory; | ||
|
||
public class Homepage { | ||
WebDriver driver; | ||
|
||
public Homepage(WebDriver driver) { | ||
this.driver = driver; | ||
PageFactory.initElements(driver, this); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.revature.runners; | ||
|
||
import java.io.File; | ||
|
||
import org.junit.AfterClass; | ||
import org.junit.runner.RunWith; | ||
import org.openqa.selenium.WebDriver; | ||
import org.openqa.selenium.chrome.ChromeDriver; | ||
|
||
import com.revature.pages.Homepage; | ||
|
||
import cucumber.api.CucumberOptions; | ||
import cucumber.api.junit.Cucumber; | ||
|
||
@RunWith(Cucumber.class) | ||
@CucumberOptions(features = "src/test/resources", glue = "com.revature.steps") | ||
public class Runner { | ||
|
||
public static WebDriver driver; | ||
public static Homepage homepage; | ||
|
||
static { | ||
File file = new File("src/main/resources/chromedriver.exe"); | ||
System.setProperty("webdriver.chrome.driver", file.getAbsolutePath()); | ||
driver = new ChromeDriver(); | ||
homepage = new Homepage(driver); | ||
} | ||
|
||
@AfterClass | ||
public void shutdown() { | ||
driver.quit(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Feature: | ||
Background: On homepage | ||
Given: The user is on the Rideshare homepage | ||
Scenario: User Logins in | ||
When: The user clicks on Login Button | ||
Then: | ||
|