public class LoginSeleniumIT extends AbstractSeleniumTestCase
classLoader, dataSetapplicationContext, loggerapplicationHost, applicationPath, applicationPort, applicationURL, driver, SE_TIMEOUT, wiser| Constructor | Description |
|---|---|
LoginSeleniumIT() |
| Modifier and Type | Method | Description |
|---|---|---|
protected String[] |
getDataSetFiles() |
must make sure, that the order is correct, so no constraints will be
violated.
|
void |
testLoginFailure() |
Verifies login failure case with invalid login/password.
|
void |
testLoginSuccessDefaultAdmin() |
Verifies the successful login case with valid login/password.
|
void |
testNotRememberMe() |
|
void |
testRememberMe() |
closeDatabase, getDataSource, getProperty, initDatabase, initializeAllLanguages, initializeLocale, onSetUp, onTearDown, resetConfiguration, setDataSourcesetApplicationContextassertElementCountEquals, assertElementCountEquals, assertElementNotPresent, assertElementNotPresent, assertElementPresent, assertElementPresent, assertElementTextEquals, assertElementTextEquals, closeSession, login, seleniumStart, takeSnapShot, waitForPageToLoad, waitForPageToLoadpublic void testLoginSuccessDefaultAdmin()
throws Exception
1. Opens login page of an application. 2. Enters correct login and password into appropriate input fields. 3. Clicks "Login" button. 4. Waits for page reload. 5. Verifies if page contains ticket id input field, which means we are inside an application.
Exceptionpublic void testLoginFailure()
throws Exception
1. Opens login page of an application. 2. Enters incorrect login and password into appropriate input fields. 3. Clicks "Login" button. 4. Waits for page reload. 5. Verifies if page contains ticket id input field, which means we are inside an application.
Exceptionprotected String[] getDataSetFiles()
AbstractDependencyInjectionTestgetDataSetFiles in class AbstractDependencyInjectionTestCopyright © 2002–2019 itracker. All rights reserved.