com.atlassian.crowd.acceptance.tests.applications.jira
Class JiraAcceptanceTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.jwebunit.junit.WebTestCase
              extended by com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
                  extended by com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
                      extended by com.atlassian.crowd.acceptance.tests.applications.jira.JiraAcceptanceTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
JiraAliasTest, JiraGroupBrowserTest, JiraGroupMutationTest, JiraMixedCaseGroupTest, JiraMixedCaseUserTest, JiraSingleSignOnTest, JiraUserBrowserTest, JiraUserMutationTest, SetupJiraTest

public class JiraAcceptanceTestCase
extends ApplicationAcceptanceTestCase


Field Summary
protected static String JIRA_ADMIN_EMAIL
           
protected static String JIRA_ADMIN_FIRSTNAME
           
protected static String JIRA_ADMIN_FULLNAME
           
protected static String JIRA_ADMIN_LASTNAME
           
protected static String JIRA_ADMIN_PASSWORD
           
protected static String JIRA_ADMIN_USERNAME
           
protected static String JIRA_ADMINISTRATORS_GROUP
           
protected static String JIRA_DEVELOPERS_GROUP
           
protected static String JIRA_TEST_EMAIL
           
protected static String JIRA_TEST_FIRSTNAME
           
protected static String JIRA_TEST_FULLNAME
           
protected static String JIRA_TEST_LASTNAME
           
protected static String JIRA_TEST_PASSWORD
           
protected static String JIRA_TEST_USERNAME
           
protected static String JIRA_USERS_GROUP
           
protected static String UNLIMITED_LICENSE_KEY
           
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
ADMIN_PW, baseUrl, CROWD_ADMIN_EMAIL_ADDRESS, CROWD_ADMIN_FULLNAME, CROWD_ADMIN_USER, CROWD_ADMINISTRATORS_GROUP, crowdBaseUrl, crowdConsole, crowdResourceBundle, specProperties
 
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase
customTester, tester
 
Constructor Summary
JiraAcceptanceTestCase()
           
 
Method Summary
protected  void adminLoginToJira()
           
protected  String getApplicationName()
           
protected  String getCurrentlyLoggedInJiraUserFullName()
           
protected  String getLocalTestPropertiesFileName()
           
protected  String getResourceBundleName()
           
protected  void gotoBrowseGroups()
           
protected  void gotoBrowseUsers()
           
protected  void gotoGlobalPermissions()
           
protected  String loginToJira(String username, String password)
           
protected  void logoutFromJira()
           
 void restoreCrowdFromXML(String xmlFilename)
           
 void restoreCrowdFromXMLNoSync(String xmlFilename)
           
protected  void setUp()
           
protected  void synchroniseJIRAWithCrowd()
           
protected  void useJira()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
getCrowdHome, getCurrentlyLoggedInCrowdUserFullName, getTestProperty, intendToModifyData, loginToCrowd, loginToCrowd, logoutFromCrowd, restoreBaseSetup, useApp, useCrowd, verifyGroupDoesNotExistInCrowd, verifyGroupDoesNotExistInCrowdWithCaseSensitiveName, verifyGroupExistsInCrowd, verifyUserDoesNotExistInCrowd, verifyUserExistsInCrowd
 
Methods inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
addRequestHeader, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertKeyInElement, assertKeyPresent, assertKeyPresent, assertKeyPresent, assertKeyPresentOnce, assertLinkPresentWithKey, assertServerResponseContains, assertServerResponseDoesNotContain, assertSuccessPresent, assertTextPresent, assertWarningAndErrorNotPresent, assertWarningNotPresent, assertWarningPresent, clickLinkWithKey, getElementTextById, getPageText, isTextPresent, log, scrapeTable, scrapeTable, setRadioButton, setTester, waitFor, waitForElementById, waitForElementByXPath, waitForText, waitForText
 
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, tearDown, 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

JIRA_ADMIN_USERNAME

protected static final String JIRA_ADMIN_USERNAME
See Also:
Constant Field Values

JIRA_ADMIN_PASSWORD

protected static final String JIRA_ADMIN_PASSWORD
See Also:
Constant Field Values

JIRA_ADMIN_EMAIL

protected static final String JIRA_ADMIN_EMAIL
See Also:
Constant Field Values

JIRA_ADMIN_FIRSTNAME

protected static final String JIRA_ADMIN_FIRSTNAME
See Also:
Constant Field Values

JIRA_ADMIN_LASTNAME

protected static final String JIRA_ADMIN_LASTNAME
See Also:
Constant Field Values

JIRA_ADMIN_FULLNAME

protected static final String JIRA_ADMIN_FULLNAME
See Also:
Constant Field Values

JIRA_TEST_USERNAME

protected static final String JIRA_TEST_USERNAME
See Also:
Constant Field Values

JIRA_TEST_PASSWORD

protected static final String JIRA_TEST_PASSWORD
See Also:
Constant Field Values

JIRA_TEST_EMAIL

protected static final String JIRA_TEST_EMAIL
See Also:
Constant Field Values

JIRA_TEST_FIRSTNAME

protected static final String JIRA_TEST_FIRSTNAME
See Also:
Constant Field Values

JIRA_TEST_LASTNAME

protected static final String JIRA_TEST_LASTNAME
See Also:
Constant Field Values

JIRA_TEST_FULLNAME

protected static final String JIRA_TEST_FULLNAME
See Also:
Constant Field Values

JIRA_ADMINISTRATORS_GROUP

protected static final String JIRA_ADMINISTRATORS_GROUP
See Also:
Constant Field Values

JIRA_DEVELOPERS_GROUP

protected static final String JIRA_DEVELOPERS_GROUP
See Also:
Constant Field Values

JIRA_USERS_GROUP

protected static final String JIRA_USERS_GROUP
See Also:
Constant Field Values

UNLIMITED_LICENSE_KEY

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

JiraAcceptanceTestCase

public JiraAcceptanceTestCase()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class ApplicationAcceptanceTestCase
Throws:
Exception

getResourceBundleName

protected String getResourceBundleName()
Specified by:
getResourceBundleName in class ApplicationAcceptanceTestCase

getApplicationName

protected String getApplicationName()
Specified by:
getApplicationName in class ApplicationAcceptanceTestCase

getLocalTestPropertiesFileName

protected String getLocalTestPropertiesFileName()
Specified by:
getLocalTestPropertiesFileName in class ApplicationAcceptanceTestCase

useJira

protected void useJira()

loginToJira

protected String loginToJira(String username,
                             String password)

adminLoginToJira

protected void adminLoginToJira()

logoutFromJira

protected void logoutFromJira()

gotoBrowseUsers

protected void gotoBrowseUsers()

gotoBrowseGroups

protected void gotoBrowseGroups()

gotoGlobalPermissions

protected void gotoGlobalPermissions()

getCurrentlyLoggedInJiraUserFullName

protected String getCurrentlyLoggedInJiraUserFullName()

restoreCrowdFromXMLNoSync

public void restoreCrowdFromXMLNoSync(String xmlFilename)

restoreCrowdFromXML

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

synchroniseJIRAWithCrowd

protected void synchroniseJIRAWithCrowd()


Copyright © 2013 Atlassian. All Rights Reserved.