com.atlassian.crowd.acceptance.tests.applications.crowd
Class CrowdAcceptanceTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.jwebunit.junit.WebTestCase
              extended by com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
                  extended by com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractDbCachingLoadTest, AddApplicationTest, AddDirectoryTest, AddGroupLDAPTest, AddGroupTest, AddPrincipalTest, AliasTest, ApplicationPluginPermissioningTest, AuthenticationTokenTest, AutoGroupAdderTest, BackupRestoreTest, BackupTest, BaseLegacyXmlRestoreTest, BrowseApplicationsTest, BrowseDirectoriesTest, BrowseGroupsTest, BrowsePrincipalSessionsTest, BrowsePrincipalsTest, ConfluenceImporterTest, ConsoleLoginTest, CrowdEntityQueryParserTest, CrowdIDAcceptanceTestCase, CrowdifiedConfluenceImporterTest, CrowdifiedJiraImporterTest, CrowdUserConsoleAcceptenceTestCase, CrowdUserManagerTest, CrowdXsrfProtectionTest, CsvImporterTest, DelegatedDirectoryTest, DelegatedDirectoryWithNestedGroupsTest, DirectoryAmalgamationTest, DirectoryConfigurationReadFromFileTest, DirectoryImporterTest, DirectoryPermissionGroupTest, DirectoryPermissionRoleTest, DirectoryPermissionUserTest, ErrorPageTest, EscapedDnTest, ExpireSessionTest, GeneralAdministrationTest, GzipFilterOptionTest, InformationLeakingTestBase, JiraImporterTest, LargeCsvImporterTest, LoggingProfilingTest, ModifyApplicationPermissionsTest, NestedGroupsBase, PrincipalAuthenticationLoadTest, RecalculateLicenseTest, RemoteCrowdDirectoryTest, RemoteDirectoryNestedGroupTest, RemoveApplicationTest, RemoveDirectoryTest, RemoveGroupLDAPTest, ResetPasswordTest, ResetPrincipalPasswordTest, RestCrowdClientTest, SAMLAuthTest, SecurityServerClientBulkAddTest, SecurityServerClientGroupTest, SecurityServerClientPrincipalTest, SecurityServerClientTest, SessionConfigTest, SetupCrowdTest, SetupCrowdWithDatabase, SynchroniseCrowdDirectoryTest, SynchroniseDirectoryTest, TokenStorageSwitchTest, TokenValidationLoadTest, UpdateApplicationDirectoryGroupTest, UpdateConnectionPoolTest, UpdateGroupLDAPTest, UpdateSAMLConfigurationTest, VeryLargeCsvImporterTest, ViewApplicationPluginTest, ViewApplicationTest, ViewDirectoryTest, ViewGroupLDAPTest, ViewGroupTest, ViewOptionsTest, ViewPrincipalTest, ViewRoleTest, WsdlTest, XFireGzipTest

public class CrowdAcceptanceTestCase
extends CrowdWebTestCase


Field Summary
protected static String ADMIN_EMAIL
           
protected static String ADMIN_FULL_NAME
           
protected static String ADMIN_GROUP
           
protected static String ADMIN_PW
           
protected static String ADMIN_USER
           
protected static String DEVELOPER_LICENSE_KEY
           
protected static String EXPIRED_MAINTENANCE_KEY
           
static String HOST_PATH
           
protected  org.slf4j.Logger logger
           
protected static Properties specProperties
           
protected static String UNLIMITED_LICENSE_KEY
           
protected static String URL_HOME
           
protected static String WORKGROUP_LICENSE_KEY
           
 
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase
customTester, tester
 
Constructor Summary
CrowdAcceptanceTestCase()
           
 
Method Summary
 void _loginAdminUser()
           
 void _loginAsUser(String username, String password)
           
 void _logout()
           
 void assertUnescapedKeyNotPresent(String key)
           
 void assertUnescapedKeyPresent(String key)
           
 void assertUserInTable(String username, String fullname, String email)
           
 void assertUserInTable(String username, String fullname, String email, String alias)
           
 void assertUserNotInTable(String username, String fullname, String email)
           
 String getBaseUrl()
           
 String getCrowdApplicationPassword()
           
 String getCrowdHome()
           
 String getText(String key)
           
 void gotoAddApplication()
           
 void gotoAddGroup()
           
 void gotoAddPrincipal()
           
 void gotoAdministrationPage()
           
 void gotoBackup()
           
 void gotoBrowseApplications()
           
 void gotoBrowseDirectories()
           
 void gotoBrowseGroups()
           
 void gotoBrowseGroups(int resultsStart)
           
 void gotoBrowsePrincipals()
           
 void gotoBrowsePrincipals(int resultsStart)
           
 void gotoCreateDirectory()
           
 void gotoCurrentApplicationSessions()
           
 void gotoCurrentPrincipalSessions()
           
 void gotoGeneral()
           
 void gotoImporters()
           
 void gotoLdapConnectionPool()
           
 void gotoLicensing()
           
 void gotoLoggingProfiling()
           
 void gotoMailServer()
           
 void gotoMailTemplate()
           
 void gotoRemovePrincipal(String principalName, String directoryName)
           
 void gotoRestore()
           
 void gotoSAMLConfig()
           
 void gotoSessionConfig()
           
 void gotoSystemInfo()
           
 void gotoTrustedProxies()
           
 void gotoViewApplication(String applicationName)
           
 void gotoViewGroup(String groupName, String directoryName)
           
 void gotoViewPrincipal(String principalName, String directoryName)
           
 void intendToModifyData()
          Mark Crowd's state as modified so we don't try to reuse the current state for the next test.
 void intendToModifyLdapData()
          Indicate that a test will modify LDAP data.
protected  void log(String message)
           
 void restoreBaseSetup()
           
 void restoreCrowdFromXML(String xmlfilename)
          Restore Crowd from a backup file, unless we already have this data present.
 void setUp()
           
 void submitLoginForm(String username, String password)
           
 void submitLoginFormAsAdminUser()
           
 void tearDown()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
addRequestHeader, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertKeyInElement, assertKeyPresent, assertKeyPresent, assertKeyPresent, assertKeyPresentOnce, assertLinkPresentWithKey, assertServerResponseContains, assertServerResponseDoesNotContain, assertSuccessPresent, assertTextPresent, assertWarningAndErrorNotPresent, assertWarningNotPresent, assertWarningPresent, clickLinkWithKey, getElementTextById, getPageText, isTextPresent, scrapeTable, scrapeTable, setRadioButton, setTester, waitFor, waitForElementById, waitForElementByXPath, waitForText, waitForText
 
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, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, 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, assertTitleNotEquals, assertTitleNotSame, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, 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, getResponseHeaders, 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
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HOST_PATH

public static String HOST_PATH

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.slf4j.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

DEVELOPER_LICENSE_KEY

protected static final String DEVELOPER_LICENSE_KEY
See Also:
Constant Field Values
Constructor Detail

CrowdAcceptanceTestCase

public CrowdAcceptanceTestCase()
Method Detail

getBaseUrl

public String getBaseUrl()

getCrowdHome

public String getCrowdHome()

getCrowdApplicationPassword

public String getCrowdApplicationPassword()

_loginAdminUser

public void _loginAdminUser()

_loginAsUser

public void _loginAsUser(String username,
                         String password)

submitLoginFormAsAdminUser

public void submitLoginFormAsAdminUser()

submitLoginForm

public void submitLoginForm(String username,
                            String password)

_logout

public void _logout()

intendToModifyData

public void intendToModifyData()
Mark Crowd's state as modified so we don't try to reuse the current state for the next test.

See Also:
TestDataState.intendToModify(java.net.URL)

intendToModifyLdapData

public void intendToModifyLdapData()
Indicate that a test will modify LDAP data. (Not implemented; included so we can start to mark those tests.)


restoreCrowdFromXML

public void restoreCrowdFromXML(String xmlfilename)
Restore Crowd from a backup file, unless we already have this data present.

See Also:
TestDataState.isRestoredXml(java.net.URL, String)

restoreBaseSetup

public void restoreBaseSetup()

gotoAddApplication

public void gotoAddApplication()

gotoCreateDirectory

public void gotoCreateDirectory()

gotoAddGroup

public void gotoAddGroup()

gotoViewPrincipal

public void gotoViewPrincipal(String principalName,
                              String directoryName)

gotoRemovePrincipal

public void gotoRemovePrincipal(String principalName,
                                String directoryName)

gotoViewGroup

public void gotoViewGroup(String groupName,
                          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)

gotoBrowseDirectories

public void gotoBrowseDirectories()

gotoImporters

public void gotoImporters()

gotoSystemInfo

public void gotoSystemInfo()

log

protected void log(String message)
Overrides:
log in class CrowdWebTestCase

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

getText

public String getText(String key)

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class net.sourceforge.jwebunit.junit.WebTestCase
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()

gotoBackup

public void gotoBackup()

gotoRestore

public void gotoRestore()

gotoViewApplication

public void gotoViewApplication(String applicationName)

gotoSAMLConfig

public void gotoSAMLConfig()

gotoLdapConnectionPool

public void gotoLdapConnectionPool()

assertUserInTable

public void assertUserInTable(String username,
                              String fullname,
                              String email)

assertUserNotInTable

public void assertUserNotInTable(String username,
                                 String fullname,
                                 String email)

assertUserInTable

public void assertUserInTable(String username,
                              String fullname,
                              String email,
                              String alias)

assertUnescapedKeyNotPresent

public void assertUnescapedKeyNotPresent(String key)

assertUnescapedKeyPresent

public void assertUnescapedKeyPresent(String key)

gotoAdministrationPage

public void gotoAdministrationPage()


Copyright © 2013 Atlassian. All Rights Reserved.