com.atlassian.crowd.acceptance.tests
Class ApplicationAcceptanceTestCase

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
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CrowdIDClientAcceptanceTestCase, CrowdIDServerAcceptanceTestCase, DemoAcceptanceTestCase

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.


Field Summary
protected static java.lang.String ADMIN_PW
           
protected static java.lang.String ADMIN_USER
           
protected  java.lang.String baseUrl
           
protected  java.lang.String context
           
protected  java.lang.String crowdBaseUrl
           
protected  CrowdAcceptanceTestCase crowdConsole
           
protected  java.lang.String crowdContext
           
protected  java.lang.String crowdPort
           
protected  java.lang.String crowdResourceBundle
           
protected  org.apache.log4j.Logger logger
           
protected  java.lang.String path
           
protected  java.lang.String port
           
protected  java.lang.String rootUrl
           
protected  java.util.Properties specProperties
           
 
Fields inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
tester
 
Constructor Summary
ApplicationAcceptanceTestCase()
           
 
Method Summary
protected abstract  java.lang.String getApplicationName()
           
protected abstract  java.lang.String getResourceBundleName()
           
protected  java.lang.String getTestProperty(java.lang.String propName)
           
protected  void log(java.lang.String message)
           
protected  void loginToCrowd()
           
protected  void logoutFromCrowd()
           
 void restoreCrowdFromXML(java.lang.String xmlFilename)
           
 void setUp()
           
protected  void useApp()
           
protected  void useCrowd()
           
 
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, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected final org.apache.log4j.Logger logger

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

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

ApplicationAcceptanceTestCase

public ApplicationAcceptanceTestCase()
Method Detail

setUp

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

getTestProperty

protected java.lang.String getTestProperty(java.lang.String propName)

useCrowd

protected void useCrowd()

useApp

protected void useApp()

restoreCrowdFromXML

public void restoreCrowdFromXML(java.lang.String xmlFilename)

log

protected void log(java.lang.String message)

logoutFromCrowd

protected void logoutFromCrowd()

loginToCrowd

protected void loginToCrowd()

getResourceBundleName

protected abstract java.lang.String getResourceBundleName()

getApplicationName

protected abstract java.lang.String getApplicationName()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.