Class ApplicationAcceptanceTestCase
java.lang.Object
com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdWebDriverTest
com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
Generic ApplicationAcceptanceTestCase base class for all
web acceptance tests.
This class loads up the required properties from
localtest.properties
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
CrowdWebTestCase.GenericPage, CrowdWebTestCase.TestContext
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected String
protected static final String
protected static final String
protected static final String
protected static final String
protected String
protected CrowdAcceptanceTestCase
protected String
protected Properties
Fields inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdWebDriverTest
applinksClient, 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
protected String
protected abstract String
protected abstract String
protected String
getTestProperty
(String propName) protected void
protected String
loginToCrowd
(String username, String password) Login to the Crowd Console.protected void
void
void
restoreCrowdFromXML
(String xmlFilename) void
setUp()
void
tearDown()
protected void
useApp()
protected void
useCrowd()
protected void
verifyGroupDoesNotExistInCrowd
(String groupName) protected void
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) Methods inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
addRequestHeader, assertButtonNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertElementIsDisabled, assertElementIsEnabled, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertFieldErrorPresentWithKey, assertInfoPresent, assertKeyInElement, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeyPresent, assertLinkNotPresent, assertLinkPresent, assertLinkPresentWithKey, assertMatchInTable, assertRadioOptionNotPresent, assertRadioOptionSelected, 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, clickLinkInNavbarDropdown, clickLinkWithExactText, clickLinkWithKey, clickLinkWithText, clickRadioOption, closeBrowser, disableIpAddressValidation, equalToIgnoringWhiteSpace, findElementWithText, getBaseUrlIPv6, getElementById, getElementByXPath, getElementsByXPath, getElementTextById, getElementTextByXPath, getElementValueByID, getFinder, getLinkInNavbar, getLinkInNavbarDropdown, getMessage, getMessage, getName, getPageSource, getPageText, getPoller, getRadiosFromRadioGroup, getRadioWithValue, 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
Methods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdWebDriverTest
assertAtRelativePath, assertAtURIContaining, assertAtURIEndingWith, assertAtUrl, assertHasError, assertHasErrorKey, bind, bind, clearAndInvalidateSsoCookieIfPresent, clearAndInvalidateSsoCookieOrFail, deleteAllCookies, deleteCookie, expectState, 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, restoreCrowdFromXML, waitForUrl, waitUntilAsyncFinished
-
Field Details
-
CROWD_ADMIN_USER
- See Also:
-
CROWD_ADMIN_EMAIL_ADDRESS
- See Also:
-
CROWD_ADMIN_FULLNAME
- See Also:
-
ADMIN_PW
- See Also:
-
baseUrl
-
specProperties
-
crowdConsole
-
crowdBaseUrl
-
crowdResourceBundle
-
CROWD_ADMINISTRATORS_GROUP
- See Also:
-
-
Constructor Details
-
ApplicationAcceptanceTestCase
public ApplicationAcceptanceTestCase()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classCrowdWebTestCase
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
getTestProperty
-
useCrowd
protected void useCrowd() -
useApp
protected void useApp() -
restoreBaseSetup
public void restoreBaseSetup()- Overrides:
restoreBaseSetup
in classCrowdWebDriverTest
-
restoreCrowdFromXML
- Overrides:
restoreCrowdFromXML
in classCrowdWebDriverTest
-
logoutFromCrowd
protected void logoutFromCrowd() -
loginToCrowd
protected void loginToCrowd() -
getCrowdHome
-
getResourceBundleName
-
getApplicationName
-
getLocalTestPropertiesFileName
-
verifyUserExistsInCrowd
protected void verifyUserExistsInCrowd(String username, String firstname, String lastname, String email, String... groupNames) throws IOException, CrowdException, ApplicationPermissionException -
verifyUserDoesNotExistInCrowd
protected void verifyUserDoesNotExistInCrowd(String username, String firstname, String lastname, String email, String... groupNames) throws IOException, CrowdException, ApplicationPermissionException -
verifyGroupExistsInCrowd
protected void verifyGroupExistsInCrowd(String groupName, String... memberNames) throws IOException, CrowdException, ApplicationPermissionException -
verifyGroupDoesNotExistInCrowd
protected void verifyGroupDoesNotExistInCrowd(String groupName) throws IOException, CrowdException, ApplicationPermissionException -
verifyGroupDoesNotExistInCrowdWithCaseSensitiveName
protected void verifyGroupDoesNotExistInCrowdWithCaseSensitiveName(String groupName) throws IOException, CrowdException, ApplicationPermissionException Either the group doesn't exist or its name has a different case. -
getCurrentlyLoggedInCrowdUserFullName
-
loginToCrowd
Login to the Crowd Console.- Parameters:
username
- Crowd Console username.password
- Crowd Console password.- Returns:
- full name of the successfully logged in user or
null
if the authentication failed.
-
getBaseUrl
- Overrides:
getBaseUrl
in classCrowdWebDriverTest
-