CreateIssueSeleniumIT
, EditIssueSeleniumIT
, EditProjectSeleniumIT
, ForgotPasswordSeleniumIT
, LoginSeleniumIT
, LogoutSeleniumIT
, ViewIssueSeleniumIT
, ViewPortalHomeSeleniumIT
, ViewProjectIssueListSeleniumIT
, ViewProjectListSeleniumIT
, ViewUserListSeleniumIT
public abstract class AbstractSeleniumTestCase extends AbstractDependencyInjectionTest
Modifier and Type | Field | Description |
---|---|---|
protected String |
applicationHost |
|
protected String |
applicationPath |
|
protected int |
applicationPort |
|
protected String |
applicationURL |
|
protected org.openqa.selenium.WebDriver |
driver |
|
protected static String |
SE_TIMEOUT |
|
protected static org.subethamail.wiser.Wiser |
wiser |
classLoader, dataSet
Constructor | Description |
---|---|
AbstractSeleniumTestCase() |
Modifier and Type | Method | Description |
---|---|---|
void |
assertElementCountEquals(int expected,
org.openqa.selenium.By by) |
|
void |
assertElementCountEquals(int expected,
org.openqa.selenium.By by,
org.openqa.selenium.SearchContext searchContext) |
|
void |
assertElementNotPresent(org.openqa.selenium.By by) |
|
void |
assertElementNotPresent(org.openqa.selenium.By by,
org.openqa.selenium.SearchContext searchContext) |
|
org.openqa.selenium.WebElement |
assertElementPresent(org.openqa.selenium.By by) |
|
org.openqa.selenium.WebElement |
assertElementPresent(org.openqa.selenium.By by,
org.openqa.selenium.SearchContext searchContext) |
|
org.openqa.selenium.WebElement |
assertElementTextEquals(String expected,
org.openqa.selenium.By by) |
|
org.openqa.selenium.WebElement |
assertElementTextEquals(String expected,
org.openqa.selenium.By by,
org.openqa.selenium.SearchContext searchContext) |
|
protected void |
closeSession() |
This will initialize a new selenium session for this test scope.
|
protected void |
login(String username,
String password) |
Assert being on login page and enter the credentials.
|
void |
seleniumStart() |
|
static void |
takeSnapShot(org.openqa.selenium.WebDriver webdriver,
String fileWithPath) |
|
protected void |
waitForPageToLoad() |
|
protected void |
waitForPageToLoad(long timeout) |
closeDatabase, getDataSetFiles, getDataSource, getProperty, initDatabase, initializeAllLanguages, initializeLocale, onSetUp, onTearDown, resetConfiguration, setDataSource
protected static final String SE_TIMEOUT
protected static final org.subethamail.wiser.Wiser wiser
protected org.openqa.selenium.WebDriver driver
protected String applicationHost
protected int applicationPort
protected String applicationPath
protected String applicationURL
public final org.openqa.selenium.WebElement assertElementPresent(org.openqa.selenium.By by)
public final void assertElementNotPresent(org.openqa.selenium.By by)
public final org.openqa.selenium.WebElement assertElementTextEquals(String expected, org.openqa.selenium.By by)
public final void assertElementCountEquals(int expected, org.openqa.selenium.By by)
public final org.openqa.selenium.WebElement assertElementPresent(org.openqa.selenium.By by, org.openqa.selenium.SearchContext searchContext)
public final void assertElementNotPresent(org.openqa.selenium.By by, org.openqa.selenium.SearchContext searchContext)
public final org.openqa.selenium.WebElement assertElementTextEquals(String expected, org.openqa.selenium.By by, org.openqa.selenium.SearchContext searchContext)
public final void assertElementCountEquals(int expected, org.openqa.selenium.By by, org.openqa.selenium.SearchContext searchContext)
protected void closeSession()
protected final void login(String username, String password)
Success will be asserted with itracker
Cookie present.
protected void waitForPageToLoad()
protected void waitForPageToLoad(long timeout)
Copyright © 2002–2019 itracker. All rights reserved.