com.atlassian.crowd.acceptance.tests.console
Class CrowdAcceptanceTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
com.atlassian.crowd.acceptance.tests.console.CrowdAcceptanceTestCase
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- AddApplicationTest, AddDirectoryTest, AddGroupLDAPTest, AddGroupTest, AddPrincipalTest, AddRoleTest, AliasTest, ApplicationPluginPermissioningTest, AuthenticationTokenTest, AutoGroupAdderTest, BackupRestoreTest, BaseLegacyXmlRestoreTest, BrowseApplicationsTest, BrowsePrincipalSessionsTest, BrowsePrincipalsTest, ConsoleLoginTest, CrowdEntityQueryParserTest, CrowdIDAcceptanceTestCase, CrowdUserConsoleAcceptenceTestCase, CsvImporterTest, DelegatedDirectoryTest, DirectoryImporterTest, ExpireSessionTest, GzipFilterOptionTest, JiraImporterTest, LargeCsvImporterTest, ModifyApplicationPermissionsTest, NestedGroupsBase, PrincipalAuthenticationLoadTest, RecalculateLicenseTest, RemoveApplicationTest, RemoveDirectoryTest, RemoveGroupLDAPTest, RestAcceptanceTestCase, SAMLAuthTest, SetupCrowdTest, TokenStorageSwitchTest, TokenValidationLoadTest, UpdateSAMLConfigurationTest, ViewApplicationPluginTest, ViewApplicationTest, ViewDirectoryTest, ViewGroupLDAPTest, ViewGroupTest, ViewOptionsTest, ViewPrincipalTest, ViewRoleTest, XFireGzipTest
public class CrowdAcceptanceTestCase
- extends CrowdWebTestCase
Method Summary |
static String |
_getTestProperty(String propName)
|
void |
_loginAdminUser()
|
void |
_logout()
|
void |
addRole(String name,
String description,
String directoryName)
|
void |
assertUserInTable(String userTableId,
String username,
String fullname,
String email)
|
void |
assertUserInTable(String userTableId,
String username,
String fullname,
String email,
String alias)
|
void |
assertUserNotInTable(String userTableId,
String username,
String fullname,
String email)
|
String |
getBaseUrl()
|
String |
getCrowdContext()
|
String |
getCrowdHome()
|
String |
getText(String key)
|
void |
gotoAddApplication()
|
void |
gotoAddGroup()
|
void |
gotoAddPrincipal()
|
void |
gotoAddRole()
|
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 |
gotoLicensing()
|
void |
gotoLoggingProfiling()
|
void |
gotoMailServer()
|
void |
gotoMailTemplate()
|
void |
gotoRestore()
|
void |
gotoSAMLConfig()
|
void |
gotoSessionConfig()
|
void |
gotoTrustedProxies()
|
void |
gotoViewApplication(String applicationName)
|
void |
gotoViewGroup(String groupName,
String directoryName)
|
void |
gotoViewPrincipal(String principalName,
String directoryName)
|
void |
gotoViewRole(String roleName,
String directoryName)
|
protected void |
log(String message)
|
void |
restoreBaseSetup()
|
void |
restoreCrowdFromXML(String xmlfilename)
|
void |
restoreCrowdFromXMLWithoutReloggingIn(String xmlfilename)
|
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, 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, getElementAttributByXPath, getElementTextByXPath, getFormElementValue, getMessage, getPageSource, getPageText, getServerResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, 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 |
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 |
CONSOLE_PORT
public static int CONSOLE_PORT
CONTEXT_PATH
public static String CONTEXT_PATH
WAR_PATH
public static String WAR_PATH
HOST_PATH
public static String HOST_PATH
HOST
public static String HOST
ADMIN_GROUP
protected static final String ADMIN_GROUP
- See Also:
- Constant Field Values
ADMIN_USER
protected static final String ADMIN_USER
- See Also:
- Constant Field Values
ADMIN_PW
protected static final String ADMIN_PW
- See Also:
- Constant Field Values
ADMIN_FULL_NAME
protected static final String ADMIN_FULL_NAME
- See Also:
- Constant Field Values
ADMIN_EMAIL
protected static final String ADMIN_EMAIL
- See Also:
- Constant Field Values
specProperties
protected static final Properties specProperties
URL_HOME
protected static String URL_HOME
logger
protected final org.apache.log4j.Logger logger
WORKGROUP_LICENSE_KEY
protected static final String WORKGROUP_LICENSE_KEY
- See Also:
- Constant Field Values
UNLIMITED_LICENSE_KEY
protected static final String UNLIMITED_LICENSE_KEY
- See Also:
- Constant Field Values
EXPIRED_MAINTENANCE_KEY
protected static final String EXPIRED_MAINTENANCE_KEY
- See Also:
- Constant Field Values
CrowdAcceptanceTestCase
public CrowdAcceptanceTestCase()
_getTestProperty
public static String _getTestProperty(String propName)
getBaseUrl
public String getBaseUrl()
getCrowdContext
public String getCrowdContext()
getCrowdHome
public String getCrowdHome()
_loginAdminUser
public void _loginAdminUser()
_logout
public void _logout()
addRole
public void addRole(String name,
String description,
String directoryName)
restoreCrowdFromXML
public void restoreCrowdFromXML(String xmlfilename)
restoreCrowdFromXMLWithoutReloggingIn
public void restoreCrowdFromXMLWithoutReloggingIn(String xmlfilename)
restoreBaseSetup
public void restoreBaseSetup()
gotoAddRole
public void gotoAddRole()
gotoAddApplication
public void gotoAddApplication()
gotoCreateDirectory
public void gotoCreateDirectory()
gotoAddGroup
public void gotoAddGroup()
gotoViewPrincipal
public void gotoViewPrincipal(String principalName,
String directoryName)
gotoViewGroup
public void gotoViewGroup(String groupName,
String directoryName)
gotoViewRole
public void gotoViewRole(String roleName,
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()
log
protected void log(String message)
- Overrides:
log
in class CrowdWebTestCase
setUp
public void setUp()
throws Exception
- Overrides:
setUp
in class CrowdWebTestCase
- Throws:
Exception
getText
public String getText(String key)
tearDown
public void tearDown()
throws Exception
- Overrides:
tearDown
in class CrowdWebTestCase
- Throws:
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()
gotoRestore
public void gotoRestore()
gotoViewApplication
public void gotoViewApplication(String applicationName)
gotoSAMLConfig
public void gotoSAMLConfig()
assertUserInTable
public void assertUserInTable(String userTableId,
String username,
String fullname,
String email)
assertUserNotInTable
public void assertUserNotInTable(String userTableId,
String username,
String fullname,
String email)
assertUserInTable
public void assertUserInTable(String userTableId,
String username,
String fullname,
String email,
String alias)
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.