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

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.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 java.lang.String JIRA_ADMIN_EMAIL
           
protected static java.lang.String JIRA_ADMIN_FIRSTNAME
           
protected static java.lang.String JIRA_ADMIN_FULLNAME
           
protected static java.lang.String JIRA_ADMIN_LASTNAME
           
protected static java.lang.String JIRA_ADMIN_PASSWORD
           
protected static java.lang.String JIRA_ADMIN_USERNAME
           
protected static java.lang.String JIRA_ADMINISTRATORS_GROUP
           
protected static java.lang.String JIRA_DEVELOPERS_GROUP
           
protected static java.lang.String JIRA_TEST_EMAIL
           
protected static java.lang.String JIRA_TEST_FIRSTNAME
           
protected static java.lang.String JIRA_TEST_FULLNAME
           
protected static java.lang.String JIRA_TEST_LASTNAME
           
protected static java.lang.String JIRA_TEST_PASSWORD
           
protected static java.lang.String JIRA_TEST_USERNAME
           
protected static java.lang.String JIRA_USERS_GROUP
           
protected  org.apache.log4j.Logger logger
           
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
tester
 
Constructor Summary
JiraAcceptanceTestCase()
           
 
Method Summary
protected  void adminLoginToJira()
           
protected  java.lang.String getApplicationName()
           
protected  java.lang.String getCurrentlyLoggedInJiraUserFullName()
           
protected  java.lang.String getLocalTestPropertiesFileName()
           
protected  java.lang.String getResourceBundleName()
           
protected  void gotoBrowseGroups()
           
protected  void gotoBrowseUsers()
           
protected  void gotoGlobalPermissions()
           
protected  java.lang.String loginToJira(java.lang.String username, java.lang.String password)
           
protected  void logoutFromJira()
           
protected  void setUp()
           
protected  void useJira()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
getCrowdHome, getCurrentlyLoggedInCrowdUserFullName, getTestProperty, loginToCrowd, loginToCrowd, logoutFromCrowd, restoreBaseSetup, restoreCrowdFromXML, 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, 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, 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, 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

JIRA_ADMIN_USERNAME

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

JIRA_ADMIN_PASSWORD

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

JIRA_ADMIN_EMAIL

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

JIRA_ADMIN_FIRSTNAME

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

JIRA_ADMIN_LASTNAME

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

JIRA_ADMIN_FULLNAME

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

JIRA_TEST_USERNAME

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

JIRA_TEST_PASSWORD

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

JIRA_TEST_EMAIL

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

JIRA_TEST_FIRSTNAME

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

JIRA_TEST_LASTNAME

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

JIRA_TEST_FULLNAME

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

JIRA_ADMINISTRATORS_GROUP

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

JIRA_DEVELOPERS_GROUP

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

JIRA_USERS_GROUP

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

logger

protected final org.apache.log4j.Logger logger

UNLIMITED_LICENSE_KEY

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

JiraAcceptanceTestCase

public JiraAcceptanceTestCase()
Method Detail

setUp

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

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

useJira

protected void useJira()

loginToJira

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

adminLoginToJira

protected void adminLoginToJira()

logoutFromJira

protected void logoutFromJira()

gotoBrowseUsers

protected void gotoBrowseUsers()

gotoBrowseGroups

protected void gotoBrowseGroups()

gotoGlobalPermissions

protected void gotoGlobalPermissions()

getCurrentlyLoggedInJiraUserFullName

protected java.lang.String getCurrentlyLoggedInJiraUserFullName()


Copyright © 2010 Atlassian. All Rights Reserved.