com.atlassian.crowd.acceptance.tests
Class ApplicationAcceptanceTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- BambooAcceptanceTestCase, ConfluenceAcceptanceTestCase, CrowdIDClientAcceptanceTestCase, CrowdIDServerAcceptanceTestCase, DemoAcceptanceTestCase, JiraAcceptanceTestCase
public abstract class ApplicationAcceptanceTestCase
- extends CrowdWebTestCase
Generic ApplicationAcceptanceTestCase base class for all
web acceptance tests.
This class loads up the required properties from
localtest.properties.
|
Method Summary |
protected abstract java.lang.String |
getApplicationName()
|
java.lang.String |
getCrowdHome()
|
protected java.lang.String |
getCurrentlyLoggedInCrowdUserFullName()
|
protected abstract java.lang.String |
getLocalTestPropertiesFileName()
|
protected abstract java.lang.String |
getResourceBundleName()
|
protected java.lang.String |
getTestProperty(java.lang.String propName)
|
protected void |
loginToCrowd()
|
protected java.lang.String |
loginToCrowd(java.lang.String username,
java.lang.String password)
Login to the Crowd Console. |
protected void |
logoutFromCrowd()
|
void |
restoreBaseSetup()
|
void |
restoreCrowdFromXML(java.lang.String xmlFilename)
|
protected void |
setUp()
|
protected void |
useApp()
|
protected void |
useCrowd()
|
protected void |
verifyGroupDoesNotExistInCrowd(java.lang.String groupName)
|
protected void |
verifyGroupExistsInCrowd(java.lang.String groupName,
java.lang.String... memberNames)
|
protected void |
verifyUserDoesNotExistInCrowd(java.lang.String username,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
java.lang.String... groupNames)
|
protected void |
verifyUserExistsInCrowd(java.lang.String username,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
java.lang.String... groupNames)
|
| 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, assertKeyInElement, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeyPresentOnce, 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, log, 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, tearDown, uncheckCheckbox, uncheckCheckbox, waitFor, waitForElementById, waitForElementByXPath, 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 |
CROWD_ADMIN_USER
protected static final java.lang.String CROWD_ADMIN_USER
- See Also:
- Constant Field Values
CROWD_ADMIN_EMAIL_ADDRESS
protected static final java.lang.String CROWD_ADMIN_EMAIL_ADDRESS
- See Also:
- Constant Field Values
CROWD_ADMIN_FULLNAME
protected static final java.lang.String CROWD_ADMIN_FULLNAME
- See Also:
- Constant Field Values
ADMIN_PW
protected static final java.lang.String ADMIN_PW
- See Also:
- Constant Field Values
port
protected java.lang.String port
context
protected java.lang.String context
path
protected java.lang.String path
baseUrl
protected java.lang.String baseUrl
specProperties
protected java.util.Properties specProperties
rootUrl
protected java.lang.String rootUrl
crowdConsole
protected CrowdAcceptanceTestCase crowdConsole
crowdContext
protected java.lang.String crowdContext
crowdPort
protected java.lang.String crowdPort
crowdBaseUrl
protected java.lang.String crowdBaseUrl
crowdResourceBundle
protected java.lang.String crowdResourceBundle
CROWD_ADMINISTRATORS_GROUP
protected static final java.lang.String CROWD_ADMINISTRATORS_GROUP
- See Also:
- Constant Field Values
ApplicationAcceptanceTestCase
public ApplicationAcceptanceTestCase()
setUp
protected void setUp()
throws java.lang.Exception
- Overrides:
setUp in class CrowdWebTestCase
- Throws:
java.lang.Exception
getTestProperty
protected java.lang.String getTestProperty(java.lang.String propName)
useCrowd
protected void useCrowd()
useApp
protected void useApp()
restoreBaseSetup
public void restoreBaseSetup()
restoreCrowdFromXML
public void restoreCrowdFromXML(java.lang.String xmlFilename)
logoutFromCrowd
protected void logoutFromCrowd()
loginToCrowd
protected void loginToCrowd()
getCrowdHome
public java.lang.String getCrowdHome()
getResourceBundleName
protected abstract java.lang.String getResourceBundleName()
getApplicationName
protected abstract java.lang.String getApplicationName()
getLocalTestPropertiesFileName
protected abstract java.lang.String getLocalTestPropertiesFileName()
verifyUserExistsInCrowd
protected void verifyUserExistsInCrowd(java.lang.String username,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
java.lang.String... groupNames)
verifyUserDoesNotExistInCrowd
protected void verifyUserDoesNotExistInCrowd(java.lang.String username,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
java.lang.String... groupNames)
verifyGroupExistsInCrowd
protected void verifyGroupExistsInCrowd(java.lang.String groupName,
java.lang.String... memberNames)
verifyGroupDoesNotExistInCrowd
protected void verifyGroupDoesNotExistInCrowd(java.lang.String groupName)
getCurrentlyLoggedInCrowdUserFullName
protected java.lang.String getCurrentlyLoggedInCrowdUserFullName()
loginToCrowd
protected java.lang.String loginToCrowd(java.lang.String username,
java.lang.String password)
- Login to the Crowd Console.
- Parameters:
username - Crowd Console username.password - Crowd Console password.
- Returns:
- full name of the successfully logged in user or
null
if the authentication failed.
Copyright © 2012 Atlassian. All Rights Reserved.