com.atlassian.crowd.acceptance.tests.applications.crowd
Class CrowdAcceptanceTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- AbstractDbCachingLoadTest, AddApplicationTest, AddDirectoryTest, AddGroupLDAPTest, AddGroupTest, AddPrincipalTest, AddRoleTest, AliasTest, ApplicationPluginPermissioningTest, AuthenticationTokenTest, AutoGroupAdderTest, BackupRestoreTest, BaseLegacyXmlRestoreTest, BrowseApplicationsTest, BrowsePrincipalSessionsTest, BrowsePrincipalsTest, ConsoleLoginTest, CrowdEntityQueryParserTest, CrowdIDAcceptanceTestCase, CrowdUserConsoleAcceptenceTestCase, CrowdUserManagerTest, CsvImporterTest, DelegatedDirectoryTest, DirectoryImporterTest, DirectoryPermissionGroupTest, DirectoryPermissionRoleTest, DirectoryPermissionUserTest, ExpireSessionTest, GzipFilterOptionTest, JiraImporterTest, LargeCsvImporterTest, ModifyApplicationPermissionsTest, NestedGroupsBase, PrincipalAuthenticationLoadTest, RecalculateLicenseTest, RemoteCrowdDirectoryTest, RemoveApplicationTest, RemoveDirectoryTest, RemoveGroupLDAPTest, RestAcceptanceTestCase, RestCrowdClientTest, RestCrowdServiceAcceptanceTestCase, SAMLAuthTest, SecurityServerClientBulkAddTest, SecurityServerClientGroupTest, SecurityServerClientPrincipalTest, SecurityServerClientTest, SetupCrowdTest, SetupCrowdWithDatabase, SynchroniseDirectoryTest, TokenStorageSwitchTest, TokenValidationLoadTest, UpdateApplicationDirectoryGroupTest, UpdateConnectionPoolTest, UpdateSAMLConfigurationTest, VeryLargeCsvImporterTest, ViewApplicationPluginTest, ViewApplicationTest, ViewDirectoryTest, ViewGroupLDAPTest, ViewGroupTest, ViewOptionsTest, ViewPrincipalTest, ViewRoleTest, XFireGzipTest
public class CrowdAcceptanceTestCase
- extends CrowdWebTestCase
Method Summary |
static java.lang.String |
_getTestProperty(java.lang.String propName)
|
void |
_loginAdminUser()
|
void |
_loginAsUser(java.lang.String username,
java.lang.String password)
|
void |
_logout()
|
void |
addRole(java.lang.String name,
java.lang.String description,
java.lang.String directoryName)
|
void |
assertUserInTable(java.lang.String userTableId,
java.lang.String username,
java.lang.String fullname,
java.lang.String email)
|
void |
assertUserInTable(java.lang.String userTableId,
java.lang.String username,
java.lang.String fullname,
java.lang.String email,
java.lang.String alias)
|
void |
assertUserNotInTable(java.lang.String userTableId,
java.lang.String username,
java.lang.String fullname,
java.lang.String email)
|
java.lang.String |
getBaseUrl()
|
java.lang.String |
getCrowdApplicationPassword()
|
java.lang.String |
getCrowdContext()
|
java.lang.String |
getCrowdHome()
|
java.lang.String |
getText(java.lang.String key)
|
void |
gotoAddApplication()
|
void |
gotoAddGroup()
|
void |
gotoAddPrincipal()
|
void |
gotoAddRole()
|
void |
gotoBackup()
|
void |
gotoBrowseApplications()
|
void |
gotoBrowseDirectories()
|
void |
gotoBrowseGroups()
|
void |
gotoBrowseGroups(int resultsStart)
|
void |
gotoBrowsePrincipals()
|
void |
gotoBrowsePrincipals(int resultsStart)
|
void |
gotoBrowseRoles()
|
void |
gotoCreateDirectory()
|
void |
gotoCurrentApplicationSessions()
|
void |
gotoCurrentPrincipalSessions()
|
void |
gotoGeneral()
|
void |
gotoImporters()
|
void |
gotoLdapConnectionPool()
|
void |
gotoLicensing()
|
void |
gotoLoggingProfiling()
|
void |
gotoMailServer()
|
void |
gotoMailTemplate()
|
void |
gotoRemovePrincipal(java.lang.String principalName,
java.lang.String directoryName)
|
void |
gotoRestore()
|
void |
gotoSAMLConfig()
|
void |
gotoSessionConfig()
|
void |
gotoSystemInfo()
|
void |
gotoTrustedProxies()
|
void |
gotoViewApplication(java.lang.String applicationName)
|
void |
gotoViewGroup(java.lang.String groupName,
java.lang.String directoryName)
|
void |
gotoViewPrincipal(java.lang.String principalName,
java.lang.String directoryName)
|
void |
gotoViewRole(java.lang.String roleName,
java.lang.String directoryName)
|
protected void |
log(java.lang.String message)
|
void |
restoreBaseSetup()
|
void |
restoreCrowdFromXML(java.lang.String xmlfilename)
|
void |
restoreCrowdFromXMLWithoutReloggingIn(java.lang.String xmlfilename)
|
void |
restoreCrowdFromXMLWithoutReloggingIn(java.lang.String xmlfilename,
boolean checkForError)
|
void |
setUp()
|
void |
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, 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 |
CONSOLE_PORT
public static int CONSOLE_PORT
CONTEXT_PATH
public static java.lang.String CONTEXT_PATH
WAR_PATH
public static java.lang.String WAR_PATH
HOST_PATH
public static java.lang.String HOST_PATH
HOST
public static java.lang.String HOST
ADMIN_GROUP
protected static final java.lang.String ADMIN_GROUP
- See Also:
- Constant Field Values
ADMIN_USER
protected static final java.lang.String ADMIN_USER
- See Also:
- Constant Field Values
ADMIN_PW
protected static final java.lang.String ADMIN_PW
- See Also:
- Constant Field Values
ADMIN_FULL_NAME
protected static final java.lang.String ADMIN_FULL_NAME
- See Also:
- Constant Field Values
ADMIN_EMAIL
protected static final java.lang.String ADMIN_EMAIL
- See Also:
- Constant Field Values
specProperties
protected static final java.util.Properties specProperties
URL_HOME
protected static java.lang.String URL_HOME
logger
protected final org.apache.log4j.Logger logger
WORKGROUP_LICENSE_KEY
protected static final java.lang.String WORKGROUP_LICENSE_KEY
- See Also:
- Constant Field Values
UNLIMITED_LICENSE_KEY
protected static final java.lang.String UNLIMITED_LICENSE_KEY
- See Also:
- Constant Field Values
EXPIRED_MAINTENANCE_KEY
protected static final java.lang.String EXPIRED_MAINTENANCE_KEY
- See Also:
- Constant Field Values
DEVELOPER_LICENSE_KEY
protected static final java.lang.String DEVELOPER_LICENSE_KEY
- See Also:
- Constant Field Values
CrowdAcceptanceTestCase
public CrowdAcceptanceTestCase()
_getTestProperty
public static java.lang.String _getTestProperty(java.lang.String propName)
getBaseUrl
public java.lang.String getBaseUrl()
getCrowdContext
public java.lang.String getCrowdContext()
getCrowdHome
public java.lang.String getCrowdHome()
getCrowdApplicationPassword
public java.lang.String getCrowdApplicationPassword()
_loginAdminUser
public void _loginAdminUser()
_loginAsUser
public void _loginAsUser(java.lang.String username,
java.lang.String password)
_logout
public void _logout()
addRole
public void addRole(java.lang.String name,
java.lang.String description,
java.lang.String directoryName)
restoreCrowdFromXML
public void restoreCrowdFromXML(java.lang.String xmlfilename)
restoreCrowdFromXMLWithoutReloggingIn
public void restoreCrowdFromXMLWithoutReloggingIn(java.lang.String xmlfilename)
restoreCrowdFromXMLWithoutReloggingIn
public void restoreCrowdFromXMLWithoutReloggingIn(java.lang.String xmlfilename,
boolean checkForError)
restoreBaseSetup
public void restoreBaseSetup()
gotoAddRole
public void gotoAddRole()
gotoAddApplication
public void gotoAddApplication()
gotoCreateDirectory
public void gotoCreateDirectory()
gotoAddGroup
public void gotoAddGroup()
gotoViewPrincipal
public void gotoViewPrincipal(java.lang.String principalName,
java.lang.String directoryName)
gotoRemovePrincipal
public void gotoRemovePrincipal(java.lang.String principalName,
java.lang.String directoryName)
gotoViewGroup
public void gotoViewGroup(java.lang.String groupName,
java.lang.String directoryName)
gotoViewRole
public void gotoViewRole(java.lang.String roleName,
java.lang.String directoryName)
gotoAddPrincipal
public void gotoAddPrincipal()
gotoBrowseApplications
public void gotoBrowseApplications()
gotoBrowsePrincipals
public void gotoBrowsePrincipals()
gotoBrowsePrincipals
public void gotoBrowsePrincipals(int resultsStart)
gotoBrowseGroups
public void gotoBrowseGroups()
gotoBrowseGroups
public void gotoBrowseGroups(int resultsStart)
gotoBrowseRoles
public void gotoBrowseRoles()
gotoBrowseDirectories
public void gotoBrowseDirectories()
gotoImporters
public void gotoImporters()
gotoSystemInfo
public void gotoSystemInfo()
log
protected void log(java.lang.String message)
- Overrides:
log
in class CrowdWebTestCase
setUp
public void setUp()
throws java.lang.Exception
- Overrides:
setUp
in class CrowdWebTestCase
- Throws:
java.lang.Exception
getText
public java.lang.String getText(java.lang.String key)
tearDown
public void tearDown()
throws java.lang.Exception
- Overrides:
tearDown
in class CrowdWebTestCase
- Throws:
java.lang.Exception
gotoGeneral
public void gotoGeneral()
gotoLicensing
public void gotoLicensing()
gotoMailServer
public void gotoMailServer()
gotoMailTemplate
public void gotoMailTemplate()
gotoSessionConfig
public void gotoSessionConfig()
gotoCurrentApplicationSessions
public void gotoCurrentApplicationSessions()
gotoCurrentPrincipalSessions
public void gotoCurrentPrincipalSessions()
gotoTrustedProxies
public void gotoTrustedProxies()
gotoLoggingProfiling
public void gotoLoggingProfiling()
gotoBackup
public void gotoBackup()
gotoRestore
public void gotoRestore()
gotoViewApplication
public void gotoViewApplication(java.lang.String applicationName)
gotoSAMLConfig
public void gotoSAMLConfig()
gotoLdapConnectionPool
public void gotoLdapConnectionPool()
assertUserInTable
public void assertUserInTable(java.lang.String userTableId,
java.lang.String username,
java.lang.String fullname,
java.lang.String email)
assertUserNotInTable
public void assertUserNotInTable(java.lang.String userTableId,
java.lang.String username,
java.lang.String fullname,
java.lang.String email)
assertUserInTable
public void assertUserInTable(java.lang.String userTableId,
java.lang.String username,
java.lang.String fullname,
java.lang.String email,
java.lang.String alias)
Copyright © 2010 Atlassian. All Rights Reserved.