com.atlassian.crowd.acceptance.utils
Class AbstractDbCachingLoadTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
com.atlassian.crowd.acceptance.utils.AbstractDbCachingLoadTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- DbCachingLoadAndOperateTest, DbCachingLoadMutationTest, DbCachingLoadTest
public abstract class AbstractDbCachingLoadTest
- extends CrowdAcceptanceTestCase
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
| Fields inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase |
ADMIN_EMAIL, ADMIN_FULL_NAME, ADMIN_GROUP, ADMIN_PW, ADMIN_USER, CONSOLE_PORT, CONTEXT_PATH, DEVELOPER_LICENSE_KEY, EXPIRED_MAINTENANCE_KEY, HOST, HOST_PATH, logger, specProperties, UNLIMITED_LICENSE_KEY, URL_HOME, WAR_PATH, WORKGROUP_LICENSE_KEY |
| Methods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase |
_getTestProperty, _loginAdminUser, _loginAsUser, _logout, addRole, assertUserInTable, assertUserInTable, assertUserNotInTable, getBaseUrl, getCrowdApplicationPassword, getCrowdContext, getCrowdHome, getText, gotoAddApplication, gotoAddGroup, gotoAddPrincipal, gotoAddRole, gotoBackup, gotoBrowseApplications, gotoBrowseDirectories, gotoBrowseGroups, gotoBrowseGroups, gotoBrowsePrincipals, gotoBrowsePrincipals, gotoBrowseRoles, gotoCreateDirectory, gotoCurrentApplicationSessions, gotoCurrentPrincipalSessions, gotoGeneral, gotoImporters, gotoLdapConnectionPool, gotoLicensing, gotoLoggingProfiling, gotoMailServer, gotoMailTemplate, gotoRemovePrincipal, gotoRestore, gotoSAMLConfig, gotoSessionConfig, gotoSystemInfo, gotoTrustedProxies, gotoViewApplication, gotoViewGroup, gotoViewPrincipal, gotoViewRole, log, restoreBaseSetup, restoreCrowdFromXML, restoreCrowdFromXMLWithoutReloggingIn, restoreCrowdFromXMLWithoutReloggingIn, tearDown |
| Methods inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase |
addRequestHeader, assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertErrorPresentWithText, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeyPresentOnce, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithKey, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertServerResponseContains, assertServerResponseDoesNotContain, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTextPresent, assertTitleEquals, assertTitleEqualsKey, assertTitleMatch, assertWarningAndErrorNotPresent, assertWarningNotPresent, assertWarningPresent, assertWarningPresentWithKey, assertWarningPresentWithText, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithKey, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getDialog, getElementAttributeByXPath, getElementTextById, getElementTextByXPath, getFormElementValue, getMessage, getPageSource, getPageText, getServerResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, isTextPresent, reset, runBare, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setRadioButton, setScriptingEnabled, setTestContext, setTester, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox, waitForText, waitForText |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CHILD_OU_A
public static final java.lang.String CHILD_OU_A
CHILD_OU_B
public static final java.lang.String CHILD_OU_B
CHILD_OU_C
public static final java.lang.String CHILD_OU_C
CHILD_OU_D
public static final java.lang.String CHILD_OU_D
CONNECTOR_BASEDN
public static final java.lang.String CONNECTOR_BASEDN
CONNECTOR_URL
public static final java.lang.String CONNECTOR_URL
CONNECTOR_SECURE
public static final java.lang.String CONNECTOR_SECURE
CONNECTOR_REFERRAL
public static final java.lang.String CONNECTOR_REFERRAL
CONNECTOR_PAGEDRESULTS
public static final java.lang.String CONNECTOR_PAGEDRESULTS
CONNECTOR_PAGEDRESULTSSIZE
public static final java.lang.String CONNECTOR_PAGEDRESULTSSIZE
CONNECTOR_USERDN
public static final java.lang.String CONNECTOR_USERDN
CONNECTOR_USERPW
public static final java.lang.String CONNECTOR_USERPW
CONNECTOR_CLASSNAME
public static final java.lang.String CONNECTOR_CLASSNAME
CONNECTOR_NESTEDGROUPS
public static final java.lang.String CONNECTOR_NESTEDGROUPS
CONNECTOR_DIRECTORY_NAME
public static final java.lang.String CONNECTOR_DIRECTORY_NAME
- See Also:
- Constant Field Values
ONE_MINUTE_IN_MILLIS
public static final int ONE_MINUTE_IN_MILLIS
- See Also:
- Constant Field Values
PARTIAL_GROUPNAME
public static final java.lang.String PARTIAL_GROUPNAME
PARTIAL_USERNAME
public static final java.lang.String PARTIAL_USERNAME
MEMBERSHIPS_COUNT
public static final int MEMBERSHIPS_COUNT
AbstractDbCachingLoadTest
public AbstractDbCachingLoadTest()
setUp
public void setUp()
throws java.lang.Exception
- Overrides:
setUp in class CrowdAcceptanceTestCase
- Throws:
java.lang.Exception
synchroniseDirectory
public long synchroniseDirectory(java.lang.String shortDescription)
throws java.lang.InterruptedException
- 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:
java.lang.InterruptedException
parsePrettyDurationToSeconds
protected static long parsePrettyDurationToSeconds(java.lang.String duration)
waitForExistingSyncToFinish
public void waitForExistingSyncToFinish()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
createLoadTestingDirectory
public void createLoadTestingDirectory(java.lang.String url,
java.lang.String baseDN,
java.lang.String userDN,
java.lang.String password)
isSynchronising
protected boolean isSynchronising()
- Returns true if the directory is currently being synchronised.
- Returns:
- true if the directory is currently being synchronised
getConnectorType
protected java.lang.String getConnectorType()
assertUsersAndGroupsFromOUPresent
public void assertUsersAndGroupsFromOUPresent(java.lang.String childOU)
assertUsersAndGroupsFromOUNotPresent
public void assertUsersAndGroupsFromOUNotPresent(java.lang.String childOU)
createUserName
public java.lang.String createUserName(java.lang.String childOU,
int index)
createGroupName
public java.lang.String createGroupName(java.lang.String childOU,
int index)
Copyright © 2011 Atlassian. All Rights Reserved.