Created
July 29, 2015 03:28
-
-
Save tjmaher/e934a4b281131bb98991 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| package tests; | |
| import base.DriverFactory; | |
| import static org.testng.Assert.assertEquals; | |
| import org.testng.annotations.Test; | |
| import utils.DriverUtils; | |
| import static enums.UserEnum.*; | |
| public class LoginTest { | |
| @Test | |
| public void test_Login() { | |
| DriverFactory df = new DriverFactory(DriverUtils.getDriver()); | |
| df.login.navigateToLoginPage(); | |
| assertEquals(df.login.getHeaderText(), "Login Page", "The Login page did not display! (FAIL)"); | |
| df.login.verifyDefaultElementsDisplay(); | |
| df.login.logIntoPage(TOM_SMITH); | |
| df.secure.verifyDefaultElementsDisplay(); | |
| assertEquals(df.secure.getHeaderText(), "Secure Area", "The Secure Area page did not display! (FAIL)"); | |
| df.secure.logOutOfSecureArea(); | |
| assertEquals(df.login.getHeaderText(), "Login Page", "The Login page did not display! (FAIL)"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment