public abstract class ApplicationAcceptanceTestCase extends CrowdWebTestCase
localtest.properties
.Modifier and Type | Field and Description |
---|---|
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 |
i18n
Constructor and Description |
---|
ApplicationAcceptanceTestCase() |
Modifier and Type | Method and Description |
---|---|
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) |
void |
setUp() |
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) |
addRequestHeader, assertButtonNotPresent, assertButtonPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxSelected, assertElementIsDisabled, assertElementIsEnabled, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertFieldErrorPresentWithKey, assertFormPresent, assertInfoPresent, assertKeyInElement, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeyPresent, assertKeyPresentOnce, assertLinkNotPresent, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithKey, assertMatchInTable, assertMatchInTable, assertRadioOptionNotPresent, assertRadioOptionSelected, assertSelectedOptionEquals, assertSelectedOptionValueEquals, assertSelectOptionNotPresent, assertSelectOptionsEqual, assertServerResponseContains, assertServerResponseDoesNotContain, assertSubmitButtonNotPresent, assertSuccessPresent, assertTableEquals, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTextPresent, assertTitleEquals, assertTitleMatch, assertTitleNotEquals, assertWarningAndErrorNotPresent, assertWarningNotPresent, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkInNavbar, clickLinkWithExactText, clickLinkWithKey, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, equalToIgnoringWhiteSpace, getDialog, getElementAttributeByXPath, getElementById, getElementByXPath, getElementsByXPath, getElementTextById, getElementTextByXPath, getElementValueByID, getMessage, getMessage, getName, getPageSource, getPageText, getResponseHeaders, getTable, getTestContext, getTestingEngine, getText, getTextForList, getWebTester, gotoPage, isTextPresent, log, scrapeTable, scrapeTable, scrapeTable, selectOption, selectOption, selectOptionByValue, setRadioButton, setScriptingEnabled, setTester, setTextField, setWorkingForm, setWorkingForm, submit, submit, uncheckCheckbox, waitFor, waitForElementById, waitForElementByXPath, waitForElementToDisappearByXPath, waitForText, waitForText
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
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
protected void verifyUserDoesNotExistInCrowd(String username, String firstname, String lastname, String email, String... groupNames) throws IOException, CrowdException, ApplicationPermissionException
protected void verifyGroupExistsInCrowd(String groupName, String... memberNames) throws IOException, CrowdException, ApplicationPermissionException
protected void verifyGroupDoesNotExistInCrowd(String groupName) throws IOException, CrowdException, ApplicationPermissionException
protected void verifyGroupDoesNotExistInCrowdWithCaseSensitiveName(String groupName) throws 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()
Copyright © 2020 Atlassian. All rights reserved.