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

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
              extended by com.atlassian.crowd.acceptance.tests.console.CrowdAcceptanceTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AddApplicationTest, AddDirectoryTest, AddGroupLDAPTest, AddGroupTest, AddPrincipalTest, AddRoleTest, ApplicationPluginPermissioningTest, BackupRestoreTest, BrowseApplicationsTest, BrowsePrincipalSessionsTest, BrowsePrincipalsTest, ConsoleLoginTest, CrowdEntityQueryParserTest, CrowdIDAcceptanceTestCase, CrowdUserConsoleAcceptenceTestCase, CsvImporterTest, DirectoryImporterTest, ExpireSessionTest, GzipFilterOptionTest, JiraImporterTest, LargeCsvImporterTest, LoadCrowdConfig, ModifyApplicationPermissionsTest, RecalculateLicenseTest, RemoveApplicationTest, RemoveDirectoryTest, RemoveGroupLDAPTest, SAMLAuthTest, SetupCrowdTest, TokenStorageSwitchTest, UpdateSAMLConfigurationTest, ViewApplicationPluginTest, ViewApplicationTest, ViewDirectoryTest, ViewGroupLDAPTest, ViewGroupTest, ViewOptionsTest, ViewPrincipalTest, ViewRoleTest

public class CrowdAcceptanceTestCase
extends CrowdWebTestCase

User: Justin Date: 12/03/2007


Field Summary
protected static java.lang.String ADMIN_EMAIL
           
protected static java.lang.String ADMIN_FULL_NAME
           
protected static java.lang.String ADMIN_GROUP
           
protected static java.lang.String ADMIN_PW
           
protected static java.lang.String ADMIN_USER
           
static int CONSOLE_PORT
           
static java.lang.String CONTEXT_PATH
           
protected static java.lang.String EXPIRED_MAINTENANCE_KEY
           
static java.lang.String HOST
           
static java.lang.String HOST_PATH
           
protected  org.apache.log4j.Logger logger
           
protected static java.util.Properties specProperties
           
protected static java.lang.String UNLIMITED_LICENSE_KEY
           
protected static java.lang.String URL_HOME
           
static java.lang.String WAR_PATH
           
protected static java.lang.String WORKGROUP_LICENSE_KEY
           
 
Fields inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
tester
 
Constructor Summary
CrowdAcceptanceTestCase()
           
 
Method Summary
static java.lang.String _getTestProperty(java.lang.String propName)
           
 void _loginAdminUser()
           
 void _logout()
           
 void addRole(java.lang.String name, java.lang.String description, java.lang.String directoryName)
           
 java.lang.String getBaseUrl()
           
 java.lang.String getCrowdContext()
           
 java.lang.String getCrowdHome()
           
protected  java.lang.String getText(java.lang.String key)
           
protected  void gotoAddApplication()
           
protected  void gotoAddGroup()
           
protected  void gotoAddPrincipal()
           
protected  void gotoAddRole()
           
protected  void gotoBrowseApplications()
           
protected  void gotoBrowseDirectories()
           
protected  void gotoBrowseGroups()
           
protected  void gotoBrowseGroups(int resultsStart)
           
protected  void gotoBrowsePrincipals()
           
protected  void gotoBrowsePrincipals(int resultsStart)
           
protected  void gotoBrowseRoles()
           
protected  void gotoCreateDirectory()
           
protected  void gotoCurrentApplicationSessions()
           
protected  void gotoCurrentPrincipalSessions()
           
protected  void gotoGeneral()
           
protected  void gotoImporters()
           
protected  void gotoLicensing()
           
protected  void gotoLoggingProfiling()
           
protected  void gotoMailServer()
           
protected  void gotoMailTemplate()
           
protected  void gotoRestore()
           
protected  void gotoSAMLConfig()
           
protected  void gotoSessionConfig()
           
protected  void gotoTrustedProxies()
           
protected  void gotoViewApplication(java.lang.String applicationName)
           
protected  void gotoViewGroup(java.lang.String groupName, java.lang.String directoryName)
           
protected  void gotoViewPrincipal(java.lang.String principalName, java.lang.String directoryName)
           
protected  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 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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

CrowdAcceptanceTestCase

public CrowdAcceptanceTestCase()
Method Detail

_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()

_loginAdminUser

public void _loginAdminUser()

_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)

restoreBaseSetup

public void restoreBaseSetup()

gotoAddRole

protected void gotoAddRole()

gotoAddApplication

protected void gotoAddApplication()

gotoCreateDirectory

protected void gotoCreateDirectory()

gotoAddGroup

protected void gotoAddGroup()

gotoViewPrincipal

protected void gotoViewPrincipal(java.lang.String principalName,
                                 java.lang.String directoryName)

gotoViewGroup

protected void gotoViewGroup(java.lang.String groupName,
                             java.lang.String directoryName)

gotoViewRole

protected void gotoViewRole(java.lang.String roleName,
                            java.lang.String directoryName)

gotoAddPrincipal

protected void gotoAddPrincipal()

gotoBrowseApplications

protected void gotoBrowseApplications()

gotoBrowsePrincipals

protected void gotoBrowsePrincipals()

gotoBrowsePrincipals

protected void gotoBrowsePrincipals(int resultsStart)

gotoBrowseGroups

protected void gotoBrowseGroups()

gotoBrowseGroups

protected void gotoBrowseGroups(int resultsStart)

gotoBrowseRoles

protected void gotoBrowseRoles()

gotoBrowseDirectories

protected void gotoBrowseDirectories()

gotoImporters

protected void gotoImporters()

log

protected void log(java.lang.String message)

setUp

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

getText

protected 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

protected void gotoGeneral()

gotoLicensing

protected void gotoLicensing()

gotoMailServer

protected void gotoMailServer()

gotoMailTemplate

protected void gotoMailTemplate()

gotoSessionConfig

protected void gotoSessionConfig()

gotoCurrentApplicationSessions

protected void gotoCurrentApplicationSessions()

gotoCurrentPrincipalSessions

protected void gotoCurrentPrincipalSessions()

gotoTrustedProxies

protected void gotoTrustedProxies()

gotoLoggingProfiling

protected void gotoLoggingProfiling()

gotoRestore

protected void gotoRestore()

gotoViewApplication

protected void gotoViewApplication(java.lang.String applicationName)

gotoSAMLConfig

protected void gotoSAMLConfig()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.