|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase net.sourceforge.jwebunit.junit.WebTestCase com.atlassian.crowd.acceptance.utils.CrowdWebTestCase com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
public abstract class ApplicationAcceptanceTestCase
Generic ApplicationAcceptanceTestCase base class for all
web acceptance tests.
This class loads up the required properties from
localtest.properties
.
Field Summary | |
---|---|
protected static String |
ADMIN_PW
|
protected String |
baseUrl
|
protected static String |
CROWD_ADMIN_EMAIL_ADDRESS
|
protected static String |
CROWD_ADMIN_FULLNAME
|
protected static String |
CROWD_ADMIN_USER
|
protected static String |
CROWD_ADMINISTRATORS_GROUP
|
protected String |
crowdBaseUrl
|
protected CrowdAcceptanceTestCase |
crowdConsole
|
protected String |
crowdResourceBundle
|
protected Properties |
specProperties
|
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
---|
customTester, tester |
Constructor Summary | |
---|---|
ApplicationAcceptanceTestCase()
|
Method Summary | |
---|---|
protected abstract String |
getApplicationName()
|
String |
getBaseUrl()
|
String |
getCrowdHome()
|
protected String |
getCurrentlyLoggedInCrowdUserFullName()
|
protected abstract String |
getLocalTestPropertiesFileName()
|
protected abstract String |
getResourceBundleName()
|
protected String |
getTestProperty(String propName)
|
void |
intendToModifyData()
|
protected void |
loginToCrowd()
|
protected String |
loginToCrowd(String username,
String password)
Login to the Crowd Console. |
protected void |
logoutFromCrowd()
|
void |
restoreBaseSetup()
|
void |
restoreCrowdFromXML(String xmlFilename)
|
protected void |
setUp()
|
protected void |
tearDown()
|
protected void |
useApp()
|
protected void |
useCrowd()
|
protected void |
verifyGroupDoesNotExistInCrowd(String groupName)
|
protected void |
verifyGroupDoesNotExistInCrowdWithCaseSensitiveName(String groupName)
Either the group doesn't exist or its name has a different case. |
protected void |
verifyGroupExistsInCrowd(String groupName,
String... memberNames)
|
protected void |
verifyUserDoesNotExistInCrowd(String username,
String firstname,
String lastname,
String email,
String... groupNames)
|
protected void |
verifyUserExistsInCrowd(String username,
String firstname,
String lastname,
String email,
String... groupNames)
|
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 |
---|
protected static final String CROWD_ADMIN_USER
protected static final String CROWD_ADMIN_EMAIL_ADDRESS
protected static final String CROWD_ADMIN_FULLNAME
protected static final String ADMIN_PW
protected String baseUrl
protected Properties specProperties
protected CrowdAcceptanceTestCase crowdConsole
protected String crowdBaseUrl
protected String crowdResourceBundle
protected static final String CROWD_ADMINISTRATORS_GROUP
Constructor Detail |
---|
public ApplicationAcceptanceTestCase()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class net.sourceforge.jwebunit.junit.WebTestCase
Exception
protected String getTestProperty(String propName)
protected void useCrowd()
protected void useApp()
public void restoreBaseSetup()
public void intendToModifyData()
public void restoreCrowdFromXML(String xmlFilename)
protected void logoutFromCrowd()
protected void loginToCrowd()
public String getCrowdHome()
protected abstract String getResourceBundleName()
protected abstract String getApplicationName()
protected abstract String getLocalTestPropertiesFileName()
protected void verifyUserExistsInCrowd(String username, String firstname, String lastname, String email, String... groupNames) throws IOException, CrowdException, ApplicationPermissionException
IOException
CrowdException
ApplicationPermissionException
protected void verifyUserDoesNotExistInCrowd(String username, String firstname, String lastname, String email, String... groupNames) throws IOException, CrowdException, ApplicationPermissionException
IOException
CrowdException
ApplicationPermissionException
protected void verifyGroupExistsInCrowd(String groupName, String... memberNames) throws IOException, CrowdException, ApplicationPermissionException
IOException
CrowdException
ApplicationPermissionException
protected void verifyGroupDoesNotExistInCrowd(String groupName) throws IOException, CrowdException, ApplicationPermissionException
IOException
CrowdException
ApplicationPermissionException
protected void verifyGroupDoesNotExistInCrowdWithCaseSensitiveName(String groupName) throws IOException, CrowdException, ApplicationPermissionException
IOException
CrowdException
ApplicationPermissionException
protected String getCurrentlyLoggedInCrowdUserFullName()
protected String loginToCrowd(String username, String password)
username
- Crowd Console username.password
- Crowd Console password.
null
if the authentication failed.public String getBaseUrl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |