com.atlassian.crowd.acceptance.tests.applications.confluence
Class ConfluenceAcceptanceTestCase

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.ApplicationAcceptanceTestCase
                  extended by com.atlassian.crowd.acceptance.tests.applications.confluence.ConfluenceAcceptanceTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ConfluenceGroupBrowserTest, ConfluenceGroupMutationTest, ConfluenceMixedCaseGroupTest, ConfluenceMixedCaseUserTest, ConfluenceSingleSignOnTest, ConfluenceUserBrowserTest, ConfluenceUserMutationTest, SetupConfluenceFromBackupTest, SetupConfluenceTest

public class ConfluenceAcceptanceTestCase
extends ApplicationAcceptanceTestCase


Field Summary
protected static java.lang.String CONFLUENCE_ADMIN_EMAIL
           
protected static java.lang.String CONFLUENCE_ADMIN_FIRSTNAME
           
protected static java.lang.String CONFLUENCE_ADMIN_FULL_NAME
           
protected static java.lang.String CONFLUENCE_ADMIN_LASTNAME
           
protected static java.lang.String CONFLUENCE_ADMIN_PASSWORD
           
protected static java.lang.String CONFLUENCE_ADMIN_USERNAME
           
protected static java.lang.String CONFLUENCE_ADMINISTRATORS_GROUP
           
protected static java.lang.String CONFLUENCE_GROUP_NAME
           
protected static java.lang.String CONFLUENCE_USER_EMAIL
           
protected static java.lang.String CONFLUENCE_USER_EMAIL_UPDATED
           
protected static java.lang.String CONFLUENCE_USER_FIRSTNAME
           
protected static java.lang.String CONFLUENCE_USER_FIRSTNAME_UPDATED
           
protected static java.lang.String CONFLUENCE_USER_FULLNAME
           
protected static java.lang.String CONFLUENCE_USER_FULLNAME_UPDATED
           
protected static java.lang.String CONFLUENCE_USER_LASTNAME
           
protected static java.lang.String CONFLUENCE_USER_LASTNAME_UPDATED
           
protected static java.lang.String CONFLUENCE_USER_PASSWORD
           
protected static java.lang.String CONFLUENCE_USER_USERNAME
           
protected static java.lang.String CONFLUENCE_USERS_GROUP
           
protected static java.lang.String UNLIMITED_LICENSE_KEY
           
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
ADMIN_PW, baseUrl, context, CROWD_ADMIN_EMAIL_ADDRESS, CROWD_ADMIN_FULLNAME, CROWD_ADMIN_USER, CROWD_ADMINISTRATORS_GROUP, crowdBaseUrl, crowdConsole, crowdContext, crowdPort, crowdResourceBundle, path, port, rootUrl, specProperties
 
Fields inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
logger, tester
 
Constructor Summary
ConfluenceAcceptanceTestCase()
           
 
Method Summary
protected  void accessAdminFeature()
           
protected  void adminLoginToConfluence()
           
protected  void clickUsernameLink(java.lang.String username)
           
protected  java.lang.String getApplicationName()
           
protected  java.lang.String getConfluenceVersion()
           
protected  java.lang.String getCurrentlyLoggedInConfluenceUserFullName()
           
protected  java.lang.String getLocalTestPropertiesFileName()
           
protected  java.lang.String getResourceBundleName()
           
protected  void gotoBrowseGroups()
           
protected  void gotoBrowseUsers()
           
protected  void gotoGlobalPermissions()
           
protected  java.lang.String loginToConfluence(java.lang.String username, java.lang.String password)
           
protected  void logoutFromConfluence()
           
 void restoreCrowdFromXML(java.lang.String xmlFilename)
           
 void restoreCrowdFromXMLNoSync(java.lang.String xmlFilename)
           
protected  void synchroniseConfluenceWithCrowd()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
getCrowdHome, getCurrentlyLoggedInCrowdUserFullName, getTestProperty, loginToCrowd, loginToCrowd, logoutFromCrowd, restoreBaseSetup, setUp, useApp, useCrowd, verifyGroupDoesNotExistInCrowd, verifyGroupExistsInCrowd, verifyUserDoesNotExistInCrowd, verifyUserExistsInCrowd
 
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
 

Field Detail

CONFLUENCE_ADMIN_USERNAME

protected static final java.lang.String CONFLUENCE_ADMIN_USERNAME
See Also:
Constant Field Values

CONFLUENCE_ADMIN_PASSWORD

protected static final java.lang.String CONFLUENCE_ADMIN_PASSWORD
See Also:
Constant Field Values

CONFLUENCE_ADMIN_FIRSTNAME

protected static final java.lang.String CONFLUENCE_ADMIN_FIRSTNAME
See Also:
Constant Field Values

CONFLUENCE_ADMIN_LASTNAME

protected static final java.lang.String CONFLUENCE_ADMIN_LASTNAME
See Also:
Constant Field Values

CONFLUENCE_ADMIN_FULL_NAME

protected static final java.lang.String CONFLUENCE_ADMIN_FULL_NAME
See Also:
Constant Field Values

CONFLUENCE_ADMIN_EMAIL

protected static final java.lang.String CONFLUENCE_ADMIN_EMAIL
See Also:
Constant Field Values

CONFLUENCE_USER_USERNAME

protected static final java.lang.String CONFLUENCE_USER_USERNAME
See Also:
Constant Field Values

CONFLUENCE_USER_PASSWORD

protected static final java.lang.String CONFLUENCE_USER_PASSWORD
See Also:
Constant Field Values

CONFLUENCE_USER_FIRSTNAME

protected static final java.lang.String CONFLUENCE_USER_FIRSTNAME
See Also:
Constant Field Values

CONFLUENCE_USER_LASTNAME

protected static final java.lang.String CONFLUENCE_USER_LASTNAME
See Also:
Constant Field Values

CONFLUENCE_USER_FULLNAME

protected static final java.lang.String CONFLUENCE_USER_FULLNAME
See Also:
Constant Field Values

CONFLUENCE_USER_EMAIL

protected static final java.lang.String CONFLUENCE_USER_EMAIL
See Also:
Constant Field Values

CONFLUENCE_USER_FIRSTNAME_UPDATED

protected static final java.lang.String CONFLUENCE_USER_FIRSTNAME_UPDATED
See Also:
Constant Field Values

CONFLUENCE_USER_LASTNAME_UPDATED

protected static final java.lang.String CONFLUENCE_USER_LASTNAME_UPDATED
See Also:
Constant Field Values

CONFLUENCE_USER_FULLNAME_UPDATED

protected static final java.lang.String CONFLUENCE_USER_FULLNAME_UPDATED
See Also:
Constant Field Values

CONFLUENCE_USER_EMAIL_UPDATED

protected static final java.lang.String CONFLUENCE_USER_EMAIL_UPDATED
See Also:
Constant Field Values

CONFLUENCE_ADMINISTRATORS_GROUP

protected static final java.lang.String CONFLUENCE_ADMINISTRATORS_GROUP
See Also:
Constant Field Values

CONFLUENCE_USERS_GROUP

protected static final java.lang.String CONFLUENCE_USERS_GROUP
See Also:
Constant Field Values

CONFLUENCE_GROUP_NAME

protected static final java.lang.String CONFLUENCE_GROUP_NAME
See Also:
Constant Field Values

UNLIMITED_LICENSE_KEY

protected static final java.lang.String UNLIMITED_LICENSE_KEY
See Also:
Constant Field Values
Constructor Detail

ConfluenceAcceptanceTestCase

public ConfluenceAcceptanceTestCase()
Method Detail

getResourceBundleName

protected java.lang.String getResourceBundleName()
Specified by:
getResourceBundleName in class ApplicationAcceptanceTestCase

getApplicationName

protected java.lang.String getApplicationName()
Specified by:
getApplicationName in class ApplicationAcceptanceTestCase

getLocalTestPropertiesFileName

protected java.lang.String getLocalTestPropertiesFileName()
Specified by:
getLocalTestPropertiesFileName in class ApplicationAcceptanceTestCase

gotoBrowseUsers

protected void gotoBrowseUsers()

gotoBrowseGroups

protected void gotoBrowseGroups()

gotoGlobalPermissions

protected void gotoGlobalPermissions()

loginToConfluence

protected java.lang.String loginToConfluence(java.lang.String username,
                                             java.lang.String password)

logoutFromConfluence

protected void logoutFromConfluence()

adminLoginToConfluence

protected void adminLoginToConfluence()

getCurrentlyLoggedInConfluenceUserFullName

protected java.lang.String getCurrentlyLoggedInConfluenceUserFullName()

accessAdminFeature

protected void accessAdminFeature()

restoreCrowdFromXMLNoSync

public void restoreCrowdFromXMLNoSync(java.lang.String xmlFilename)

restoreCrowdFromXML

public void restoreCrowdFromXML(java.lang.String xmlFilename)
Overrides:
restoreCrowdFromXML in class ApplicationAcceptanceTestCase

getConfluenceVersion

protected java.lang.String getConfluenceVersion()

synchroniseConfluenceWithCrowd

protected void synchroniseConfluenceWithCrowd()

clickUsernameLink

protected void clickUsernameLink(java.lang.String username)


Copyright © 2012 Atlassian. All Rights Reserved.