Class AbstractDbCachingLoadTest
java.lang.Object
com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdWebDriverTest
com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
com.atlassian.crowd.acceptance.utils.AbstractDbCachingLoadTest
- Direct Known Subclasses:
DbCachingLoadAndOperateTest,DbCachingLoadMutationTest,DbCachingLoadTest
Contains constants and helper methods that are shared between DbCachingLoad tests
The LDAP server properties will be determined by the property file provided in the system property: tpm.loadtest.file
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
CrowdWebTestCase.GenericPage, CrowdWebTestCase.TestContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final Stringstatic final StringbooleanFields inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
ADMIN_PW, ADMIN_USER, BATCHED_TEST_RULE, EXPIRED_MAINTENANCE_KEY, logger, testkitClient, testName, testWatcher, URL_HOME, USER_DETAILS_TABLE_IDFields inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdWebDriverTest
applinksClient, BACKUP_RESOURCE, 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, webDriverRules -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidassertUsersAndGroupsFromOUPresent(String childOU) createGroupName(String childOU, int index) longcreateLoadTestingDirectory(String url, String baseDN, String userDN, String password) createUserName(String childOU, int index) protected Stringprotected booleanisSynchronising(String directoryName) Returnstrueif the directory is currently being synchronised.protected static longparsePrettyDurationToSeconds(String duration) voidvoidsetUp()longsynchroniseDirectory(String shortDescription) Manually starts the sync.voidMethods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
_loginAsUser, _logout, assertAtLoginForm, assertAtLoginForm, assertIsLoggedIn, assertIsLoggedOut, assertMatchInTableBody, assertNoMatchInTableBody, assertPageNotFound, assertUnescapedKeyNotPresent, assertUnescapedKeyPresent, assertUserInTable, assertUserInTable, assertUserNotInTable, disableIPValidation, doBackup, getGroupTableContents, getInstanceProperties, getUserDetailsTableContents, getUsersCount, getUsersForDirectory, gotoAddApplication, gotoAddGroup, gotoAddPrincipal, gotoAdministrationPage, gotoBrowseApplications, gotoBrowseDirectories, gotoBrowseGroups, gotoBrowseGroups, gotoBrowsePrincipals, gotoBrowsePrincipals, gotoCreateDirectory, gotoCurrentApplicationSessions, gotoCurrentPrincipalSessions, gotoGeneral, gotoImporters, gotoLdapConnectionPool, gotoLicensing, gotoLoggingProfiling, gotoMailServer, gotoMailTemplate, gotoRemovePrincipal, gotoRestore, gotoSAMLConfig, gotoSessionConfig, gotoSystemInfo, gotoTrustedProxies, gotoViewApplication, gotoViewApplicationDirectories, gotoViewGroup, gotoViewPrincipal, intendToModifyLdapData, isLoggedIn, isLoggedInAfterRefresh, log, loginAdmin, loginWithRestAndRedirectToStartPage, loginWithRestEndpoint, loginWithRestEndpoint, namesOf, nameValueParamsToMap, performRequestWithCookieExchange, restGet, restoreCrowdFromXMLWithoutReloggingIn, restPost, userWithDetails, userWithUsernameAndDisplayNameMethods 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, scrapeTable, scrapeTable, scrapeTable, selectOption, selectOption, selectOptionBy, selectOptionByValue, seleniumCookieToRestAssuredCookie, setRadioButton, setResourceBundleName, setTextField, setWorkingForm, setWorkingForm, submit, submit, uncheckCheckbox, waitForElementById, waitUntilPageLoadMethods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdWebDriverTest
assertAtRelativePath, assertAtURIContaining, assertAtURIEndingWith, assertAtUrl, assertHasError, assertHasErrorKey, beforeCreatingTestedProduct, bind, bind, clearAndInvalidateSsoCookieIfPresent, clearAndInvalidateSsoCookieOrFail, deleteAllCookies, deleteCookie, expectState, getBaseUrl, getBaseUrlWithoutPort, getCookie, getCookieOrThrow, getCurrentUrl, getDriver, getSsoCookieOrFail, getTestkitClient, hasCookie, hasSsoCookie, loginAsExpiredPasswordUser, loginAsNonAdmin, loginAsNonAdmin, loginAsSysAdmin, loginAsSysAdmin, loginAsSysAdmin, loginAsSysAdminWithRememberMe, loginAsUser, loginExpectingFailure, loginImmutableUser, loginImmutableUser, loginTestUser, loginTestUser, logout, manage, navigateToAndBind, navigateToUrl, restoreCrowdFromXML, restoreCrowdFromXML, waitForUrl, waitUntilAsyncFinished
-
Field Details
-
CHILD_OU_A
-
CHILD_OU_B
-
CHILD_OU_C
-
CHILD_OU_D
-
CONNECTOR_BASEDN
-
CONNECTOR_URL
-
CONNECTOR_SECURE
-
CONNECTOR_REFERRAL
-
CONNECTOR_PAGEDRESULTS
-
CONNECTOR_PAGEDRESULTSSIZE
-
CONNECTOR_USERDN
-
CONNECTOR_USERPW
-
CONNECTOR_CLASSNAME
-
CONNECTOR_NESTEDGROUPS
-
CONNECTOR_DIRECTORY_NAME
- See Also:
-
ONE_MINUTE_IN_MILLIS
public static final int ONE_MINUTE_IN_MILLIS- See Also:
-
PARTIAL_GROUPNAME
-
PARTIAL_USERNAME
-
MEMBERSHIPS_COUNT
public static final int MEMBERSHIPS_COUNT -
useSpringLdapConnectionPooling
public boolean useSpringLdapConnectionPooling
-
-
Constructor Details
-
AbstractDbCachingLoadTest
public AbstractDbCachingLoadTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classCrowdAcceptanceTestCase- Throws:
Exception
-
restoreBaseSetup
public void restoreBaseSetup()- Overrides:
restoreBaseSetupin classCrowdWebDriverTest
-
synchroniseDirectory
Manually starts the sync.- Parameters:
shortDescription- A short description of what is being sync-ed (eg. 10k users) to be printed once we believe the sync has finished.- Returns:
- The duration of the sync process in seconds.
- Throws:
InterruptedException
-
parsePrettyDurationToSeconds
-
waitForExistingSyncToFinish
public void waitForExistingSyncToFinish() -
createLoadTestingDirectory
public long createLoadTestingDirectory(String url, String baseDN, String userDN, String password) throws Exception - Throws:
Exception
-
isSynchronising
Returnstrueif the directory is currently being synchronised.- Parameters:
directoryName-- Returns:
trueif the directory is currently being synchronised
-
getConnectorType
-
assertUsersAndGroupsFromOUPresent
-
assertUsersAndGroupsFromOUNotPresent
-
createUserName
-
createGroupName
-