public abstract class ApplicationAcceptanceTestCase extends CrowdWebTestCase
localtest.properties
.CrowdWebTestCase.GenericPage, CrowdWebTestCase.TestContext
Modifier and Type | Field and Description |
---|---|
protected static String |
ADMIN_PW |
protected String |
baseUrl |
protected static String |
CROWD_ADMIN_EMAIL_ADDRESS |
protected static String |
CROWD_ADMIN_FULLNAME |
protected static String |
CROWD_ADMIN_USER |
protected static String |
CROWD_ADMINISTRATORS_GROUP |
protected String |
crowdBaseUrl |
protected CrowdAcceptanceTestCase |
crowdConsole |
protected String |
crowdResourceBundle |
protected Properties |
specProperties |
BACKUP_RESOURCE, BATCHED_TEST_RULE, COOKIE_ABSENT, i18n, IMMUTABLE_USER_NAME, IMMUTABLE_USER_PW, JSESSIONID_COOKIE, log, REMEMBER_ME_COOKIE, restAdminClient, SSO_COOKIE, TEST_USER_DISPLAYNAME, TEST_USER_NAME, TEST_USER_PW, testedProduct, testkitClient, webDriverRules
Constructor and Description |
---|
ApplicationAcceptanceTestCase() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getApplicationName() |
String |
getBaseUrl() |
String |
getCrowdHome() |
protected String |
getCurrentlyLoggedInCrowdUserFullName() |
protected abstract String |
getLocalTestPropertiesFileName() |
protected abstract String |
getResourceBundleName() |
protected String |
getTestProperty(String propName) |
void |
intendToModifyData() |
protected void |
loginToCrowd() |
protected String |
loginToCrowd(String username,
String password)
Login to the Crowd Console.
|
protected void |
logoutFromCrowd() |
void |
restoreBaseSetup() |
void |
restoreCrowdFromXML(String xmlFilename) |
void |
setUp() |
void |
tearDown() |
protected void |
useApp() |
protected void |
useCrowd() |
protected void |
verifyGroupDoesNotExistInCrowd(String groupName) |
protected void |
verifyGroupDoesNotExistInCrowdWithCaseSensitiveName(String groupName)
Either the group doesn't exist or its name has a different case.
|
protected void |
verifyGroupExistsInCrowd(String groupName,
String... memberNames) |
protected void |
verifyUserDoesNotExistInCrowd(String username,
String firstname,
String lastname,
String email,
String... groupNames) |
protected void |
verifyUserExistsInCrowd(String username,
String firstname,
String lastname,
String email,
String... groupNames) |
addRequestHeader, assertButtonNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxSelected, assertElementIsDisabled, assertElementIsEnabled, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertFieldErrorPresentWithKey, assertInfoPresent, assertKeyInElement, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeyPresent, assertLinkNotPresent, assertLinkPresent, assertLinkPresentWithKey, assertMatchInTable, assertRadioOptionNotPresent, assertSelectedOptionEquals, assertSelectedOptionValueEquals, assertSelectOptionsEqual, assertSuccessPresent, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTitleEquals, assertTitleMatch, assertTitleNotEquals, assertWarningAndErrorNotPresent, assertWarningNotPresent, beginAt, checkCheckbox, checkCheckbox, clearCookies, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkInNavbar, clickLinkWithExactText, clickLinkWithKey, clickLinkWithText, clickRadioOption, closeBrowser, disableIpAddressValidation, equalToIgnoringWhiteSpace, findElementWithText, getBaseUrlIPv6, getElementById, getElementByXPath, getElementsByXPath, getElementTextById, getElementTextByXPath, getElementValueByID, getFinder, getMessage, getMessage, getName, getPageSource, getPageText, getPoller, getRestAssuredCookies, getTable, getTestContext, getText, getTextForList, gotoPage, isElementWithIdPresent, isTextPresent, log, scrapeTable, scrapeTable, scrapeTable, selectOption, selectOption, selectOptionBy, selectOptionByValue, seleniumCookieToRestAssuredCookie, setRadioButton, setResourceBundleName, setTextField, setWorkingForm, setWorkingForm, submit, submit, uncheckCheckbox, waitForElementById, waitUntilPageLoad
assertAtRelativePath, assertAtURIContaining, assertAtURIEndingWith, assertAtUrl, assertHasError, assertHasErrorKey, bind, bind, clearAndInvalidateSsoCookieIfPresent, clearAndInvalidateSsoCookieOrFail, deleteAllCookies, deleteCookie, getBaseUrlWithoutPort, getCookie, getCookieOrThrow, getCurrentUrl, getDriver, getSsoCookieOrFail, getTestkitClient, hasCookie, hasSsoCookie, intendToModifyLdapData, loginAsExpiredPasswordUser, loginAsNonAdmin, loginAsNonAdmin, loginAsSysAdmin, loginAsSysAdmin, loginAsSysAdminWithRememberMe, loginAsUser, loginExpectingFailure, loginImmutableUser, loginImmutableUser, loginTestUser, loginTestUser, logout, manage, navigateToAndBind, navigateToUrl, waitForUrl, waitUntilAsyncFinished
protected static final String CROWD_ADMIN_USER
protected static final String CROWD_ADMIN_EMAIL_ADDRESS
protected static final String CROWD_ADMIN_FULLNAME
protected static final String ADMIN_PW
protected String baseUrl
protected Properties specProperties
protected CrowdAcceptanceTestCase crowdConsole
protected String crowdBaseUrl
protected String crowdResourceBundle
protected static final String CROWD_ADMINISTRATORS_GROUP
public void setUp() throws Exception
setUp
in class CrowdWebTestCase
Exception
protected void useCrowd()
protected void useApp()
public void restoreBaseSetup()
restoreBaseSetup
in class CrowdWebDriverTest
public void intendToModifyData()
intendToModifyData
in class CrowdWebDriverTest
public void restoreCrowdFromXML(String xmlFilename)
restoreCrowdFromXML
in class CrowdWebDriverTest
protected void logoutFromCrowd()
protected void loginToCrowd()
public String getCrowdHome()
protected abstract String getResourceBundleName()
protected abstract String getApplicationName()
protected abstract String getLocalTestPropertiesFileName()
protected void verifyUserExistsInCrowd(String username, String firstname, String lastname, String email, String... groupNames) throws IOException, CrowdException, ApplicationPermissionException
protected void verifyUserDoesNotExistInCrowd(String username, String firstname, String lastname, String email, String... groupNames) throws IOException, CrowdException, ApplicationPermissionException
protected void verifyGroupExistsInCrowd(String groupName, String... memberNames) throws IOException, CrowdException, ApplicationPermissionException
protected void verifyGroupDoesNotExistInCrowd(String groupName) throws IOException, CrowdException, ApplicationPermissionException
protected void verifyGroupDoesNotExistInCrowdWithCaseSensitiveName(String groupName) throws IOException, CrowdException, ApplicationPermissionException
protected String getCurrentlyLoggedInCrowdUserFullName()
protected String loginToCrowd(String username, String password)
username
- Crowd Console username.password
- Crowd Console password.null
if the authentication failed.public String getBaseUrl()
getBaseUrl
in class CrowdWebDriverTest
Copyright © 2021 Atlassian. All rights reserved.