public class LoginSeleniumIT extends AbstractSeleniumTestCase
classLoader, dataSet
applicationContext, logger
applicationHost, 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, setDataSource
setApplicationContext
assertElementCountEquals, assertElementCountEquals, assertElementNotPresent, assertElementNotPresent, assertElementPresent, assertElementPresent, assertElementTextEquals, assertElementTextEquals, closeSession, login, seleniumStart, takeSnapShot, waitForPageToLoad, waitForPageToLoad
public 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.
Exception
public 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.
Exception
protected String[] getDataSetFiles()
AbstractDependencyInjectionTest
getDataSetFiles
in class AbstractDependencyInjectionTest
Copyright © 2002–2022 itracker. All rights reserved.