|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase net.sourceforge.jwebunit.junit.WebTestCase com.atlassian.crowd.acceptance.utils.CrowdWebTestCase com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase com.atlassian.crowd.acceptance.utils.AbstractDbCachingLoadTest
public abstract class AbstractDbCachingLoadTest
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
Field Summary | |
---|---|
static String |
CHILD_OU_A
|
static String |
CHILD_OU_B
|
static String |
CHILD_OU_C
|
static String |
CHILD_OU_D
|
static String |
CONNECTOR_BASEDN
|
static String |
CONNECTOR_CLASSNAME
|
static String |
CONNECTOR_DIRECTORY_NAME
|
static String |
CONNECTOR_NESTEDGROUPS
|
static String |
CONNECTOR_PAGEDRESULTS
|
static String |
CONNECTOR_PAGEDRESULTSSIZE
|
static String |
CONNECTOR_REFERRAL
|
static String |
CONNECTOR_SECURE
|
static String |
CONNECTOR_URL
|
static String |
CONNECTOR_USERDN
|
static String |
CONNECTOR_USERPW
|
static int |
MEMBERSHIPS_COUNT
|
static int |
ONE_MINUTE_IN_MILLIS
|
static String |
PARTIAL_GROUPNAME
|
static String |
PARTIAL_USERNAME
|
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 |
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
---|
customTester, tester |
Constructor Summary | |
---|---|
AbstractDbCachingLoadTest()
|
Method Summary | |
---|---|
void |
assertUsersAndGroupsFromOUNotPresent(String childOU)
|
void |
assertUsersAndGroupsFromOUPresent(String childOU)
|
String |
createGroupName(String childOU,
int index)
|
void |
createLoadTestingDirectory(String url,
String baseDN,
String userDN,
String password)
|
String |
createUserName(String childOU,
int index)
|
protected String |
getConnectorType()
|
protected boolean |
isSynchronising()
Returns true if the directory is currently being synchronised. |
protected static long |
parsePrettyDurationToSeconds(String duration)
|
void |
setUp()
|
long |
synchroniseDirectory(String shortDescription)
Manually starts the sync. |
void |
waitForExistingSyncToFinish()
|
Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
---|
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCommentNotPresent, assertCommentPresent, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHeaderEquals, assertHeaderMatches, assertHeaderNotPresent, assertHeaderPresent, assertHiddenFieldPresent, assertImagePresent, assertImagePresentPartial, assertImageValid, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLabeledFieldEquals, assertLabelMatches, assertLabelPresent, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatch, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertNotMatch, assertNotMatch, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertResponseCode, assertResponseCodeBetween, assertSelectedOptionEquals, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSelectOptionValuesPresent, 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, assertTitleEquals, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertTitleNotSame, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getAllHeaders, getComments, getDialog, getElementAttributByXPath, getElementAttributeByXPath, getElementById, getElementByXPath, getElementsByXPath, getElementTextByXPath, getFieldsForLabel, getFormElementValue, getHeader, getImage, getLabeledFieldValue, getMessage, getMessage, getPageSource, getServerResponse, getServeurResponse, getTable, getTestContext, getTester, getTestingEngine, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOption, selectOptionByValue, selectOptionByValue, selectOptions, selectOptions, selectOptionsByValues, selectOptionsByValues, setBaseUrl, setBaseUrl, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setHiddenField, setIgnoreFailingStatusCodes, setLabeledFormElementField, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setTimeout, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox |
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 |
Field Detail |
---|
public static final String CHILD_OU_A
public static final String CHILD_OU_B
public static final String CHILD_OU_C
public static final String CHILD_OU_D
public static final String CONNECTOR_BASEDN
public static final String CONNECTOR_URL
public static final String CONNECTOR_SECURE
public static final String CONNECTOR_REFERRAL
public static final String CONNECTOR_PAGEDRESULTS
public static final String CONNECTOR_PAGEDRESULTSSIZE
public static final String CONNECTOR_USERDN
public static final String CONNECTOR_USERPW
public static final String CONNECTOR_CLASSNAME
public static final String CONNECTOR_NESTEDGROUPS
public static final String CONNECTOR_DIRECTORY_NAME
public static final int ONE_MINUTE_IN_MILLIS
public static final String PARTIAL_GROUPNAME
public static final String PARTIAL_USERNAME
public static final int MEMBERSHIPS_COUNT
Constructor Detail |
---|
public AbstractDbCachingLoadTest()
Method Detail |
---|
public void setUp() throws Exception
setUp
in class CrowdAcceptanceTestCase
Exception
public long synchroniseDirectory(String shortDescription) throws InterruptedException
shortDescription
- A short description of what is being sync-ed (eg. 10k users) to be printed once we believe the sync has finished.
InterruptedException
protected static long parsePrettyDurationToSeconds(String duration)
public void waitForExistingSyncToFinish() throws InterruptedException
InterruptedException
public void createLoadTestingDirectory(String url, String baseDN, String userDN, String password)
protected boolean isSynchronising()
protected String getConnectorType()
public void assertUsersAndGroupsFromOUPresent(String childOU)
public void assertUsersAndGroupsFromOUNotPresent(String childOU)
public String createUserName(String childOU, int index)
public String createGroupName(String childOU, int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |