com.atlassian.jira.webtests.ztests.bulk
Class BulkChangeIssues

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.jwebunit.WebTestCase
              extended by com.atlassian.jira.webtests.WebTestCaseWrapper
                  extended by com.atlassian.jira.webtests.AbstractAtlassianWebTestCase
                      extended by com.atlassian.jira.webtests.JIRAWebTest
                          extended by com.atlassian.jira.webtests.ztests.bulk.BulkChangeIssues
All Implemented Interfaces:
FunctTestConstants, EnvironmentAware, junit.framework.Test
Direct Known Subclasses:
TestBulkChangeIssues, TestBulkDeleteIssues, TestBulkEditIssues, TestBulkMoveIssues, TestBulkMoveIssuesForEnterprise, TestBulkWorkflowTransition

public abstract class BulkChangeIssues
extends JIRAWebTest


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.webtests.JIRAWebTest
JIRAWebTest.ParameterEnterer
 
Field Summary
protected static String ERROR_NEXT_CHOOSE_ISSUE
          Constant Error Strings caused from clicking 'Next' in the steps without completing the required fields.
protected static String ERROR_NEXT_CHOOSE_OPERATION
           
protected static String ERROR_NEXT_OPERATION_DETAILS
           
protected static String FIELD_SEARCH_STRING
           
protected static String FIELDS_UPDATE_AUTO
           
protected static String FORM_QUICK_SEARCH
           
protected static String LABEL_NO_ISSUE_FOUND
           
protected static String NOTE_MULTIPLE_PROJECTS
           
protected static String NOTE_NO_COMPONENTS
           
protected static String NOTE_NO_CUSTOM_FIELDS
           
protected static String NOTE_NO_VERSIONS
           
protected static int NUM_RESULTS_PER_PG
          This is the number of issues displayed in one result page of the issue navigator
protected static String OPTION_COMPONENT_ONE
           
protected static String OPTION_PRIORITY_FIVE
           
protected static String OPTION_PRIORITY_FOUR
           
protected static String OPTION_PRIORITY_ONE
           
protected static String OPTION_PRIORITY_THREE
           
protected static String OPTION_PRIORITY_TWO
           
protected static String OPTION_UNASSIGNED
           
protected static String OPTION_VERSION_ONE
           
protected static String OPTION_VERSION_TWO
           
protected static String PROJECT_TEMP
           
protected static String SUMMARY_ISSUE_IN_PROJECT_TEMP
           
protected static String SUMMARY_ISSUE_IN_PROJECT_TWO
           
protected static String SUMMARY_ISSUE_ON_NEXT_PG
           
protected static String TYPE_PRIORITY_FIVE
           
protected static String TYPE_PRIORITY_FOUR
           
protected static String TYPE_PRIORITY_ONE
           
protected static String TYPE_PRIORITY_THREE
           
protected static String TYPE_PRIORITY_TWO
           
 
Fields inherited from class com.atlassian.jira.webtests.JIRAWebTest
administration, assertions, backdoor, BULK_TRANSITION_ELEMENT_NAME, environmentData, FIELD_SCOPE_GLOBAL, form, JDK_1_5_VERSION, locator, log, navigation, page, PAGE_ENTERPRISE_FIELD_CONFIGURATIONS, PAGE_ISSUE_TYPE_SCREEN_SCHEMES, PAGE_NOT_STANDARD_VIEW_FIELD_SCREEN_SCHEMES, PAGE_USER_BROWSER, parse, text
 
Fields inherited from class net.sourceforge.jwebunit.WebTestCase
tester
 
Fields inherited from interface com.atlassian.jira.functest.framework.FunctTestConstants
ADMIN_EMAIL, ADMIN_FULLNAME, ADMIN_PASSWORD, ADMIN_USERNAME, ADMINISTER, AFFECTS_VERSIONS_FIELD_ID, ANYONE, ASSIGN_FIELD_SCREEN, ASSIGN_FIELD_SCREEN_NAME, ASSIGN_ISSUE, ASSIGNABLE_USER, ASSIGNEE_FIELD_ID, ATTACHMENT_FIELD_ID, BOB_EMAIL, BOB_FULLNAME, BOB_PASSWORD, BOB_USERNAME, BROWSE, BUILT_IN_CUSTOM_FIELD_KEY, BULK_CHANGE, BUTTON_CANCEL, BUTTON_CONFIRM, BUTTON_NAME_NEXT, BUTTON_NEXT, CHANGE_HISTORY, CLONERS_INWARD_LINK_NAME, CLONERS_LINK_TYPE_NAME, CLONERS_OUTWARD_LINK_NAME, CLOSE_ISSUE, COMMENT_ISSUE, COMPONENT_NAME_FOUR, COMPONENT_NAME_ONE, COMPONENT_NAME_THREE, COMPONENT_NAME_TWO, COMPONENTS_FIELD_ID, CREATE_ATTACHMENT, CREATE_ISSUE, CREATE_ISSUE_OPERATION_SCREEN, CREATE_SHARED_OBJECTS, CUSTOM_FIELD_CASCADING_SELECT_SEARCHER, CUSTOM_FIELD_CHECKBOX_SEARCHER, CUSTOM_FIELD_CONFIGURATION, CUSTOM_FIELD_DATE_RANGE, CUSTOM_FIELD_EXACT_NUMBER, CUSTOM_FIELD_EXACT_TEXT_SEARCHER, CUSTOM_FIELD_GROUP_PICKER_SEARCHER, CUSTOM_FIELD_LABEL_SEARCHER, CUSTOM_FIELD_MULTI_SELECT_SEARCHER, CUSTOM_FIELD_NUMBER_RANGE, CUSTOM_FIELD_PREFIX, CUSTOM_FIELD_PROJECT_SEARCHER, CUSTOM_FIELD_RADIO_SEARCHER, CUSTOM_FIELD_SELECT_SEARCHER, CUSTOM_FIELD_TEXT_SEARCHER, CUSTOM_FIELD_TYPE_CASCADINGSELECT, CUSTOM_FIELD_TYPE_CHECKBOX, CUSTOM_FIELD_TYPE_DATEPICKER, CUSTOM_FIELD_TYPE_DATETIME, CUSTOM_FIELD_TYPE_FLOAT, CUSTOM_FIELD_TYPE_GROUPPICKER, CUSTOM_FIELD_TYPE_LABELS, CUSTOM_FIELD_TYPE_MULTICHECKBOXES, CUSTOM_FIELD_TYPE_MULTIGROUPPICKER, CUSTOM_FIELD_TYPE_MULTISELECT, CUSTOM_FIELD_TYPE_MULTIUSERPICKER, CUSTOM_FIELD_TYPE_PROJECT, CUSTOM_FIELD_TYPE_RADIO, CUSTOM_FIELD_TYPE_SELECT, CUSTOM_FIELD_TYPE_TEXTFIELD, CUSTOM_FIELD_TYPE_URL, CUSTOM_FIELD_TYPE_USERPICKER, CUSTOM_FIELD_TYPE_VERSION, CUSTOM_FIELD_USER_PICKER_GROUP_SEARCHER, CUSTOM_FIELD_USER_PICKER_SEARCHER, CUSTOM_FIELD_VERSION_SEARCHER, CUSTOM_SUB_TASK_SUMMARY, CUSTOM_SUB_TASK_TYPE_DESCRIPTION, CUSTOM_SUB_TASK_TYPE_NAME, DEFAULT_ASSIGNEE_ERROR_MESSAGE, DEFAULT_FIELD_CONFIGURATION, DEFAULT_FIELD_SCREEN_NAME, DEFAULT_ISSUE_TYPE_SCREEN_SCHEME, DEFAULT_OPERATION_SCREEN, DEFAULT_PERM_SCHEME, DEFAULT_SCREEN_SCHEME, DEFAULT_TEXT_RENDERER, DELETE_ISSUE, DUE_DATE_FIELD_ID, EDIT_ISSUE, EDIT_ISSUE_OPERATION_SCREEN, EVENT_TYPE_ACTIVE_STATUS, EVENT_TYPE_INACTIVE_STATUS, FIELD_ASSIGNEE, FIELD_COMMENT, FIELD_COMPONENTS, FIELD_FIX_VERSIONS, FIELD_OPERATION, FIELD_PRIORITY, FIELD_SCHEME_DESC, FIELD_SCHEME_NAME, FIELD_TABLE_ID, FIELD_VERSIONS, FIELD_WORKFLOW, FIX_VERSIONS_FIELD_ID, FORMAT_DAYS, FORMAT_HOURS, FORMAT_PRETTY, FRED_EMAIL, FRED_FULLNAME, FRED_PASSWORD, FRED_USERNAME, FS, FUNC_TEST_PLUGIN_REST_PATH, GLOBAL_ADMIN, HTM, ISSUE_ALL, ISSUE_BUG, ISSUE_IMAGE_BUG, ISSUE_IMAGE_GENERIC, ISSUE_IMAGE_IMPROVEMENT, ISSUE_IMAGE_NEWFEATURE, ISSUE_IMAGE_SUB_TASK, ISSUE_IMAGE_TASK, ISSUE_IMPROVEMENT, ISSUE_NEWFEATURE, ISSUE_TAB_ALL, ISSUE_TAB_CHANGE_HISTORY, ISSUE_TAB_COMMENTS, ISSUE_TAB_WORK_LOG, ISSUE_TASK, ISSUE_TYPE_ALL, ISSUE_TYPE_ANY, ISSUE_TYPE_BUG, ISSUE_TYPE_IMPROVEMENT, ISSUE_TYPE_NEWFEATURE, ISSUE_TYPE_SUB_TASK, ISSUE_TYPE_TASK, ISSUETABLE_EDIT_ROW, ISSUETABLE_HEADER_ROW, ISSUETABLE_ID, JIRA_ADMIN_GROUP, JIRA_ADMIN_ROLE, JIRA_DEV_GROUP, JIRA_DEV_ROLE, JIRA_FORM_NAME, JIRA_USERS_GROUP, JIRA_USERS_ROLE, LABEL_ISSUE_NAVIGATOR, LINK_ASSIGN_ISSUE, LINK_BULK_CHANGE_ALL, LINK_BULK_CHANGE_CURR_PG, LINK_CLONE_ISSUE, LINK_DELETE_ISSUE, LINK_EDIT_ISSUE, LINK_ISSUE, LINK_NEXT_PG, MANAGE_GROUP_FILTER_SUBSCRIPTIONS, MANAGE_WATCHER_LIST, minorPriority, MODIFY_REPORTER, MOVE_DOWN, MOVE_ISSUE, MOVE_TO_FIRST, MOVE_TO_LAST, MOVE_UP, PERM_SCHEME_DESC, PERM_SCHEME_NAME, PRIORITY_BLOCKER, PRIORITY_CRITICAL, PRIORITY_FIELD_ID, PRIORITY_IMAGE_BLOCKER, PRIORITY_IMAGE_CRITICAL, PRIORITY_IMAGE_MAJOR, PRIORITY_IMAGE_MINOR, PRIORITY_IMAGE_TRIVIAL, PRIORITY_MAJOR, PRIORITY_MINOR, PRIORITY_TRIVIAL, PROJECT_ADMIN, PROJECT_HOMOSAP, PROJECT_HOMOSAP_KEY, PROJECT_MONKEY, PROJECT_MONKEY_KEY, PROJECT_NEO, PROJECT_NEO_KEY, PROJECT_TAB_CHANGE_LOG, PROJECT_TAB_COMPONENTS, PROJECT_TAB_OPEN_ISSUES, PROJECT_TAB_POPULAR_ISSUES, PROJECT_TAB_ROAD_MAP, PROJECT_TAB_VERSIONS, RADIO_OPERATION_DELETE, RADIO_OPERATION_EDIT, RADIO_OPERATION_MOVE, RADIO_OPERATION_WORKFLOW, REPORTER_FIELD_ID, RESOLUTION_FIELD_ID, RESOLVE_FIELD_SCREEN_NAME, RESOLVE_ISSUE, SCHEDULE_ISSUE, SCREEN_TABLE_NAME_COLUMN_INDEX, SECURITY_LEVEL_FIELD_ID, SECURITY_LEVEL_ONE_DESC, SECURITY_LEVEL_ONE_NAME, SECURITY_LEVEL_THREE_DESC, SECURITY_LEVEL_THREE_NAME, SECURITY_LEVEL_TWO_DESC, SECURITY_LEVEL_TWO_NAME, SECURITY_SCHEME_DESC, SECURITY_SCHEME_NAME, SET_ISSUE_SECURITY, STATUS_IMAGE_IN_PROGRESS, STATUS_IMAGE_OPEN, STATUS_IMAGE_REOPENED, STATUS_IMAGE_RESOLVED, STATUS_IN_PROGRESS, STATUS_NAME, STATUS_OPEN, STEP_CHOOSE_ISSUES, STEP_CHOOSE_OPERATION, STEP_CONFIRMATION, STEP_NAME, STEP_OPERATION_DETAILS, STEP_PREFIX, SUB_TASK_DEFAULT_TYPE, SUB_TASK_SUMMARY, Summary, SYS_ADMIN_PASSWORD, SYS_ADMIN_USERNAME, SYSTEM_ADMINISTER, TEST_FIELD_SCREEN, TRANSIION_NAME_APPROVE, TRANSIION_NAME_CLOSE, TRANSIION_NAME_REOPEN, TRANSIION_NAME_RESOLVE, TRANSIION_NAME_START_PROGRESS, TRANSIION_NAME_STOP_PROGRESS, USE, USER_PICKER, VERSION_NAME_FIVE, VERSION_NAME_FOUR, VERSION_NAME_ONE, VERSION_NAME_THREE, VERSION_NAME_TWO, VERSIONS_FIELD_ID, VIEW_ISSUE_OPERATION_SCREEN, VIEW_VERSION_CONTROL, VIEW_VOTERS_AND_WATCHERS, WIKI_STYLE_RENDERER, WORK_ISSUE, WORKFLOW_ADDED, WORKFLOW_COPIED, WORKFLOW_SCHEME
 
Constructor Summary
BulkChangeIssues(String name)
           
 
Method Summary
protected  void addCurrentPageLink()
          Adds an issue until the issue navigator has a next page
protected  String addIssue(String summary)
          adds a new issue with the given 'summary'
protected  String addIssueInProject(String summary, String project, String projectKey)
          adds a issue with the given summary in the given project
protected  void addIssues(int numOfIssues)
          adds new random issues ('numOfIssues' times)
these issues are not 'known' types.
protected  void addIssues(String prefix, int numOfIssues)
          adds new random issues ('numOfIssues' times)
these issues are not 'known' types.
protected  void bulkChangeNextWithoutFormCompletionStepChooseIssue()
          Error checking for clicking next without completing the step: Choose Issue
protected  void bulkChangeNextWithoutFormCompletionStepChooseOperation()
          Error checking for clicking next without completing the step: Choose Operation
protected  void bulkChangeNextWithoutFormCompletionStepOperationDetails()
          Error checking for clicking next without completing the step: Operation Details
protected  void bulkChangeSetup()
           
protected  boolean checkIssueIsDeleted(String summary)
          does a quick search with the given summary, and checks if the issue with the summary exists (deleted or not).
protected  void checkIssuesAreListed(String prefix, int max)
          Checks that issues with summary equal to the 'prefix' + i [0..max] are present
protected  void checkIssuesAreNotListed(String prefix, int max)
          Checks that issues with summary equal to the 'prefix' + i [0..max] are NOT present
protected  void checkLabelForStepChooseOperation(int numOfSelectedIssues, int numOfSelectedProjects)
          checks that that dynamic label in Step Choose Operation is correct
protected  void checkLabelForStepConfirmationDelete(int numOfSelectedIssues, int numOfSelectedProjects)
          checks that that dynamic label in Step Confirmation for Delete Operation is correct
protected  void checkLabelForStepConfirmationEdit(int numOfSelectedIssues, int numOfSelectedProjects)
          checks that that dynamic label in Step Confirmation for Edit Operation is correct
protected  void checkLabelForStepIssueNavigator(int page, int totalIssues)
          Checks if the issue navigator displays the correct dynamic label regarding the number of issues/results on display.
Also checks if there is the link to bulk change all and bulk change current if there is more than one page of issues/results
protected  void checkLabelForStepOperationDetails(int numOfSelectedIssues, int numOfSelectedProjects)
          checks that that dynamic label in Step Operation Details is correct
protected  void checkLinkToStepChooseIssues()
          Returns to Step Choose Issues using the side menu from the wizard and checks that the link is correct
protected  void checkLinkToStepChooseOperation()
          Returns to Step Choose Operations using the side menu from the wizard and checks that the link is correct
protected  void checkLinkToStepOperationDetails()
          Returns to Step Operation Details using the side menu from the wizard and checks that the link is correct
protected  void checkMultipleProjectNote()
           
protected  void checkSideBarLinksInStepChooseIssues()
          Checks the side menu links for whether they have the correct links available or not, and also if it is for the correct step.
protected  void checkSideBarLinksInStepChooseOperation()
          Checks the side menu links for whether they have the correct links available or not, and also if it is for the correct step.
protected  void checkSideBarLinksInStepConfirmationForDeleteOp()
          Checks the side menu links for whether they have the correct links available or not, and also if it is for the correct step.
protected  void checkSideBarLinksInStepConfirmationForEditOp()
          Checks the side menu links for whether they have the correct links available or not, and also if it is for the correct step.
This is for the step Confirmation with operation as edit
protected  void checkSideBarLinksInStepOperationDetails()
          Checks the side menu links for whether they have the correct links available or not, and also if it is for the correct step.
This is for the step Operations Details
protected  void checkSideMenuLabel(int numOfSelectedIssues, int numOfSelectedProjects)
          Checks that the dynamic label in the side menu of all the steps in bulk change is correct
 void setUp()
           
 void tearDown()
           
 
Methods inherited from class com.atlassian.jira.webtests.JIRAWebTest
activateIssueLinking, activateSubTasks, activateTimeTracking, activateWorkflow, addColumnToIssueNavigator, addCommentOnCurrentIssue, addCommentOnCurrentIssue, addComponent, addComponent, addCustomField, addCustomField, addCustomFieldOption, addCustomFieldWithMultipleIssueTypes, addEventType, addFieldLayoutScheme, addFieldLayoutSchemeEntry, addFieldScreenScheme, addFieldsToFieldScreen, addFieldToFieldScreen, addFieldToFieldScreen, addFieldToFieldScreenTab, addGroupToProjectRole, addGroupToSecurityLevel, addGroupToSecurityLevel, addIssue, addIssue, addIssueOnly, addIssueOperationToScreenAssociation, addIssueType, addIssueTypeFieldScreenScheme, addIssueTypeStatsPortlet, addIssueTypeToScreenAssociation, addIssueViaRest, addLinkedStatus, addPortlet, addProject, addProjectAdminPermission, addRoleToSecurityLevel, addScreen, addSubTaskToIssue, addSubTaskToIssue, addTabToScreen, addTransition, addUser, addUser, addUserToGroup, addUserToProjectRole, addVersion, addWorkFlow, addWorkflowCondition, addWorkflowCondition, addWorkflowPostfunction, addWorkFlowScheme, addWorkflowValidator, addWorkflowValidator, assertErrorMsgFieldRequired, assertFormElementHasValue, assertFormElementHasValue, assertFormElementWithNameHasValue, assertFormElementWithNameHasValue, assertFormTextAreaHasValue, assertFormTextAreaHasValue, assertHelpLinkWithStringInUrlPresent, assertIndexedFieldCorrect, assertIssueNavigatorDisplaying, assertLastChangeHistoryIs, assertLastChangeNotMadeToField, assertLinkPresentWithoutSubString, assertLinkPresentWithSubString, assertLinkPresentWithURL, assertLinkWithTextUrlContains, assertLinkWithTextUrlEndsWith, assertNoChangesForIssue, assertOptionSelected, assertOptionSelectedById, assertOptionsEqualIgnoreOrder, assertPageDoesNotExist, assertRedirect, assertRedirectAndFollow, assertRedirectPath, assertRegexMatch, assertResponseCanBeCached, assertResponseCannotBeCached, assertSubTaskConversionPanelSteps, assertTableCellContainsFixVersionsLinks, assertTableCellContainsNoFixVersionsLinks, assertTableCellContainsNoPriorityIcon, assertTableCellContainsPriorityIcon, assertTableCellHasImage, assertTableCellHasNoImage, assertTableCellHasNotText, assertTableCellHasText, assertTableHasMatchingRow, assertTableHasMatchingRowFrom, assertTableHasMatchingRowFromTo, assertTableHasNoMatchingRow, assertTableHasNoMatchingRow, assertTableHasNoMatchingRowFromTo, assertTableHasOnlyNMatchingRows, assertTableHasSubTable, assertTableRowEquals, assertTextListNotPresent, assertTextListPresent, assertTextNotInColumn, assertUserIsMemberOfGroups, assertViewIssueFields, assignIssue, assignWorkflowScheme, associateFieldLayoutScheme, associateIssueLevelSecuritySchemeToProject, associateIssueTypeScreenSchemeToProject, associatePermSchemeToProject, associateSecuritySchemeToProject, associateWorkFlowSchemeToProject, associateWorkFlowSchemeToProject, browseToFullConfigure, bulkChangeCancel, bulkChangeChooseIssuesAll, bulkChangeChooseOperationDelete, bulkChangeChooseOperationEdit, bulkChangeConfirm, bulkChangeIncludeAllPages, bulkChangeIncludeCurrentPage, bulkChangeSelectIssue, bulkChangeSelectIssues, bulkEditConfirmEdit, bulkEditOperationDetailsSetAs, changeWorkflow, checkCommentVisibility, checkEventTypeDetails, checkItemsAreInAscendingOrder, checkNotificationForEvent, checkOrderingUsingArrows, checkOrderingUsingMoveToPos, chooseOperationBulkMove, chooseOperationExecuteWorfklowTransition, clearComponentLead, clickOnAdminPanel, clickOnNext, componentExists, configureCustomFieldOption, configureDefaultCheckBoxCustomFieldValue, configureDefaultCustomFieldValue, configureDefaultMultiCustomFieldValue, copyFieldLayout, copyFieldScreenScheme, copyFileToJiraImportDirectory, copyIssueTypeFieldScreenSchemeName, copyScreen, copyWorkFlow, createClonersLinkType, createCustomFields, createGroup, createIssueLinkType, createIssuesInBulk, createIssueStep1, createIssueStep1, createNewFieldScreen, createPermissionScheme, createProjectCategory, createSecurityLevel, createSecurityScheme, createSubTaskStep1, createSubTaskType, customFieldExists, deactivateIssueLinking, deactivateSubTasks, deactivateTimeTracking, delCustomFieldOption, deleteAllFilter, deleteAllIssuesInAllPages, deleteComponent, deleteCurrentIssue, deleteCustomField, deleteEventType, deleteFieldLayoutScheme, deleteFieldScreenScheme, deleteFilter, deleteIssue, deleteIssueOperationFromScreenAssociation, deleteIssueTypeFieldScreenScheme, deleteLinkedStatus, deletePermissionScheme, deleteProject, deleteProjectCategory, deleteScreen, deleteSecurityLevel, deleteSecurityScheme, deleteStep, deleteSubTaskType, deleteTabFromScreen, deleteTransition, deleteUser, deleteVersion, deleteWorkFlow, deleteWorkFlowScheme, disableIssueLinks, disableUnassignedIssues, displayAllIssues, doFieldOperation, dumpResponse, dumpResponse, dumpScreen, easyMapBuild, easyMapBuild, easyMapBuild, editIssueType, editIssueWithCustomFields, editIssueWithCustomFields, editTransitionScreen, enableCommentGroupVisibility, enableRemoteApi, enableUnassignedIssues, enableWorkflow, extractFilterId, extractIssueKey, fieldSchemeExists, findRowWithName, getAdministration, getAssertions, getBackdoor, getBuild, getComponentId, getEdition, getEnvironmentData, getEventTypeIDWithName, getFormElement, getFormElementValue, getFormElementValues, getFormParameter, getFormParameters, getFormParameterValues, getIssueIdWithIssueKey, getIssueKeyWithSummary, getJiraJavaVersion, getNavigation, getPage, getProjectId, getRedirect, getRegexMatch, getSubmittedTaskId, getTableRowAsList, getTagBody, getTester, getTitle, getWebClientListener, gotoAdmin, gotoComponentBrowse, gotoConvertIssue, gotoConvertIssueStep2, gotoConvertIssueStep3, gotoConvertSubTask, gotoConvertSubTaskStep2, gotoCustomFields, gotoDashboard, gotoDefaultPermissionScheme, gotoFieldConfigurationDefault, gotoFieldLayoutConfiguration, gotoFieldLayouts, gotoFieldLayoutSchemes, gotoFieldScreen, gotoFieldScreens, gotoFieldScreenScheme, gotoFieldScreenScheme, gotoFieldScreenSchemes, gotoFieldScreenTab, gotoFilter, gotoFilterById, gotoGroupToRoleMappingToolMappingSelection, gotoGroupToRoleMappingToolSchemeSelection, gotoIssue, gotoIssueSecuritySchemes, gotoIssueTabPanel, gotoIssueTypeScreenScheme, gotoIssueTypeScreenSchemes, gotoNavigator, gotoPage, gotoPageNoLog, gotoPermissionSchemes, gotoPluginsScreen, gotoPortletConfig, goToProject, gotoProjectBrowse, gotoProjectCategories, gotoProjectRolesScreen, gotoProjectTabPanel, gotoSchemeTools, gotoVersionBrowse, gotoWorkFlow, gotoWorkFlowScheme, grantGlobalPermission, grantGroupAllPermissions, grantGroupPermission, grantGroupPermission, grantPermissionToReporter, grantPermissionToUserCustomField, grantPermissionToUserInEnterprise, grantRolePermission, init, isBeforeJdk15, isFormElementDisabled, isJiraSetup, isMailServerExists, isStepChooseIssues, isStepChooseOperation, isStepConfirmation, isStepOperationDetails, jiraLog, linkedStatusExists, linkIssueWithComment, login, login, logout, logWork, logWorkOnIssue, logWorkOnIssueWithComment, mapGroupToRoles, moveOptionsToPositions, navigateToUser, permissionSchemeExists, placeProjectInCategory, prettyParseRow, prettyParseRow, progressAndResolve, progressWorkflow, projectCategoryExists, projectExists, reconfigureTimetracking, removeAllCustomFields, removeAllFieldScreenAssociation, removeAllFieldScreens, removeAllFieldScreenSchemes, removeAllIssueTypeScreenSchemes, removeAllScreenAssociationsFromDefault, removeAllWatchers, removeAssociationOfSecuritySchemeFromProject, removeAssociationWithFieldLayoutScheme, removeFieldFromFieldScreen, removeFieldFromFieldScreenTab, removeGlobalPermission, removeGroup, removeGroupFromProjectRole, removeGroupFromSecurityLevel, removeGroupPermission, removeGroupPermission, removePermissionFromUserCustomField, removeRoleFromSecurityLevel, removeRolePermission, removeUserFromGroup, removeUserFromProjectRole, resetFields, resetInAscendingOrdering, restoreBlankInstance, restoreColumnDefaults, restoreData, restoreData, restoreData, restoreDataWithFullRefresh, restoreDataWithLicense, restoreDefaultDashboard, restoreI18nData, restoreI18nData, runBare, runQuickSearch, runTest, saveFilter, saveFilterAs, securtiyLevelExists, securtiySchemeExists, selectCheckbox, setBaseUrl, setBaseUrl, setBulkEditFieldTo, setComponentAssigneeOptions, setComponentLead, setComponentName, setDueDateToRequried, setEnvironmentData, setEstimate, setFieldConfigurationFieldToRenderer, setFieldConfigurationFieldToRenderer, setHiddenFields, setHiddenFieldsOnEnterprise, setOptionalFieldsOnEnterprise, setProjectLead, setRequiredField, setRequiredFields, setRequiredFieldsOnEnterprise, setSecurityLevelToRequried, setShownFields, setShownFieldsOnEnterprise, setUnassignedIssuesOption, setUpHttpUnitOptions, sortIssues, sortIssues, split, start, startDashboardConfiguration, startWatchingAnIssue, startWatchingAnIssue, stop, stopWatchingAnIssue, submitAtPage, subTaskTypeExists, switchLicense, switchToPersonalLicense, tableCellDoesNotHaveText, tableCellHasLinkThatContains, tableCellHasNoLinks, tableCellHasStrictText, tableCellHasText, tableHasSubTable, tableIndexOf, tableIndexOf, tableIndexOf, tableIndexOf, tableIndexOf, toggleExternalUserManagement, turnOffDangerMode, turnOnDangerMode, unassignWorkflowScheme, unvoteForIssue, userExists, usingHsqlDb, validateProgressBarUI, versionExists, viewChangeHistoryOfIssue, voteForIssue, waitForSuccessfulWorkflowActivation, waitForSuccessfulWorkflowSchemeMigration, waitForTaskAcknowledgement, workflowExists, workflowSchemeExists, xpath
 
Methods inherited from class com.atlassian.jira.webtests.AbstractAtlassianWebTestCase
assertCollapsedTextSequence, assertLessThan, assertLinkWithNameExists, assertLinkWithNameNotPresent, assertLinkWithTextExists, assertLinkWithTextNotPresent, assertTextPresent, assertTextPresentAfterText, assertTextPresentBeforeText, assertTextPresentOnlyOnce, assertTextSequence, assertTextSequence, clickAnyButtonWithValue, clickButtonWithValue, findTextSequence, flattenArray, getCollapsedResponseText, getFirstWebTableWithClass, getResponseText, getWebTablesWithClass, getWebTableWithID, hasLinkWithName, hasLinkWithText
 
Methods inherited from class com.atlassian.jira.webtests.WebTestCaseWrapper
assertElementNotPresent, assertElementPresent, assertOptionValueNotPresent, assertOptionValuePresent, assertTextInTable, assertTextNotPresent, assertTextPresent, clickCancelButton, log, log, log, logSection, raiseRuntimeException, selectMultiOption, selectMultiOptionByValue, selectOption, submit
 
Methods inherited from class net.sourceforge.jwebunit.WebTestCase
assertButtonNotPresent, assertButtonPresent, assertCheckboxNotSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertFormElementEmpty, assertFormElementEquals, assertFormElementNotPresent, assertFormElementNotPresentWithLabel, assertFormElementPresent, assertFormElementPresentWithLabel, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyPresent, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertOptionEquals, assertOptionsEqual, assertOptionsNotEqual, assertOptionValuesEqual, assertOptionValuesNotEqual, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonValue, assertTableEquals, assertTableEquals, assertTableNotPresent, assertTablePresent, assertTableRowsEqual, assertTableRowsEqual, assertTextInElement, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTitleEquals, assertTitleEqualsKey, assertWindowPresent, beginAt, checkCheckbox, checkCheckbox, clickButton, clickLink, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickLinkWithTextAfterText, dumpCookies, dumpCookies, dumpResponse, dumpTable, dumpTable, getDialog, getMessage, getTestContext, gotoFrame, gotoRootWindow, gotoWindow, reset, setFormElement, setFormElementWithLabel, setWorkingForm, submit, uncheckCheckbox, uncheckCheckbox
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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

NUM_RESULTS_PER_PG

protected static final int NUM_RESULTS_PER_PG
This is the number of issues displayed in one result page of the issue navigator

See Also:
Constant Field Values

PROJECT_TEMP

protected static final String PROJECT_TEMP
See Also:
Constant Field Values

SUMMARY_ISSUE_ON_NEXT_PG

protected static final String SUMMARY_ISSUE_ON_NEXT_PG
See Also:
Constant Field Values

SUMMARY_ISSUE_IN_PROJECT_TWO

protected static final String SUMMARY_ISSUE_IN_PROJECT_TWO
See Also:
Constant Field Values

SUMMARY_ISSUE_IN_PROJECT_TEMP

protected static final String SUMMARY_ISSUE_IN_PROJECT_TEMP
See Also:
Constant Field Values

LABEL_NO_ISSUE_FOUND

protected static final String LABEL_NO_ISSUE_FOUND
See Also:
Constant Field Values

ERROR_NEXT_CHOOSE_ISSUE

protected static final String ERROR_NEXT_CHOOSE_ISSUE
Constant Error Strings caused from clicking 'Next' in the steps without completing the required fields.

See Also:
Constant Field Values

ERROR_NEXT_CHOOSE_OPERATION

protected static final String ERROR_NEXT_CHOOSE_OPERATION
See Also:
Constant Field Values

ERROR_NEXT_OPERATION_DETAILS

protected static final String ERROR_NEXT_OPERATION_DETAILS
See Also:
Constant Field Values

NOTE_MULTIPLE_PROJECTS

protected static final String NOTE_MULTIPLE_PROJECTS
See Also:
Constant Field Values

NOTE_NO_VERSIONS

protected static final String NOTE_NO_VERSIONS
See Also:
Constant Field Values

NOTE_NO_COMPONENTS

protected static final String NOTE_NO_COMPONENTS
See Also:
Constant Field Values

NOTE_NO_CUSTOM_FIELDS

protected static final String NOTE_NO_CUSTOM_FIELDS
See Also:
Constant Field Values

FORM_QUICK_SEARCH

protected static final String FORM_QUICK_SEARCH
See Also:
Constant Field Values

FIELD_SEARCH_STRING

protected static final String FIELD_SEARCH_STRING
See Also:
Constant Field Values

OPTION_VERSION_ONE

protected static final String OPTION_VERSION_ONE
See Also:
Constant Field Values

OPTION_VERSION_TWO

protected static final String OPTION_VERSION_TWO
See Also:
Constant Field Values

OPTION_COMPONENT_ONE

protected static final String OPTION_COMPONENT_ONE
See Also:
Constant Field Values

OPTION_UNASSIGNED

protected static final String OPTION_UNASSIGNED
See Also:
Constant Field Values

OPTION_PRIORITY_ONE

protected static final String OPTION_PRIORITY_ONE
See Also:
Constant Field Values

OPTION_PRIORITY_TWO

protected static final String OPTION_PRIORITY_TWO
See Also:
Constant Field Values

OPTION_PRIORITY_THREE

protected static final String OPTION_PRIORITY_THREE
See Also:
Constant Field Values

OPTION_PRIORITY_FOUR

protected static final String OPTION_PRIORITY_FOUR
See Also:
Constant Field Values

OPTION_PRIORITY_FIVE

protected static final String OPTION_PRIORITY_FIVE
See Also:
Constant Field Values

TYPE_PRIORITY_ONE

protected static final String TYPE_PRIORITY_ONE
See Also:
Constant Field Values

TYPE_PRIORITY_TWO

protected static final String TYPE_PRIORITY_TWO
See Also:
Constant Field Values

TYPE_PRIORITY_THREE

protected static final String TYPE_PRIORITY_THREE
See Also:
Constant Field Values

TYPE_PRIORITY_FOUR

protected static final String TYPE_PRIORITY_FOUR
See Also:
Constant Field Values

TYPE_PRIORITY_FIVE

protected static final String TYPE_PRIORITY_FIVE
See Also:
Constant Field Values

FIELDS_UPDATE_AUTO

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

BulkChangeIssues

public BulkChangeIssues(String name)
Method Detail

setUp

public void setUp()
Overrides:
setUp in class JIRAWebTest

tearDown

public void tearDown()
Overrides:
tearDown in class JIRAWebTest

bulkChangeSetup

protected void bulkChangeSetup()

addIssue

protected String addIssue(String summary)
adds a new issue with the given 'summary'

Parameters:
summary -

addIssues

protected void addIssues(int numOfIssues)
adds new random issues ('numOfIssues' times)
these issues are not 'known' types.

Parameters:
numOfIssues -

addIssues

protected void addIssues(String prefix,
                         int numOfIssues)
adds new random issues ('numOfIssues' times)
these issues are not 'known' types.

Parameters:
numOfIssues -

addIssueInProject

protected String addIssueInProject(String summary,
                                   String project,
                                   String projectKey)
adds a issue with the given summary in the given project


addCurrentPageLink

protected void addCurrentPageLink()
Adds an issue until the issue navigator has a next page


checkIssueIsDeleted

protected boolean checkIssueIsDeleted(String summary)
does a quick search with the given summary, and checks if the issue with the summary exists (deleted or not).
This only works if all issues have unique summary.
A better approach would be to get the issue key and search for that.

Parameters:
summary -
Returns:
(boolean) whether the issue with given summary is deleted

bulkChangeNextWithoutFormCompletionStepChooseIssue

protected void bulkChangeNextWithoutFormCompletionStepChooseIssue()
Error checking for clicking next without completing the step: Choose Issue


bulkChangeNextWithoutFormCompletionStepChooseOperation

protected void bulkChangeNextWithoutFormCompletionStepChooseOperation()
Error checking for clicking next without completing the step: Choose Operation


bulkChangeNextWithoutFormCompletionStepOperationDetails

protected void bulkChangeNextWithoutFormCompletionStepOperationDetails()
Error checking for clicking next without completing the step: Operation Details


checkLabelForStepIssueNavigator

protected void checkLabelForStepIssueNavigator(int page,
                                               int totalIssues)
Checks if the issue navigator displays the correct dynamic label regarding the number of issues/results on display.
Also checks if there is the link to bulk change all and bulk change current if there is more than one page of issues/results

Parameters:
page -

checkLabelForStepChooseOperation

protected void checkLabelForStepChooseOperation(int numOfSelectedIssues,
                                                int numOfSelectedProjects)
checks that that dynamic label in Step Choose Operation is correct

Parameters:
numOfSelectedIssues -
numOfSelectedProjects -

checkLabelForStepOperationDetails

protected void checkLabelForStepOperationDetails(int numOfSelectedIssues,
                                                 int numOfSelectedProjects)
checks that that dynamic label in Step Operation Details is correct

Parameters:
numOfSelectedIssues -
numOfSelectedProjects -

checkLabelForStepConfirmationEdit

protected void checkLabelForStepConfirmationEdit(int numOfSelectedIssues,
                                                 int numOfSelectedProjects)
checks that that dynamic label in Step Confirmation for Edit Operation is correct

Parameters:
numOfSelectedIssues -
numOfSelectedProjects -

checkLabelForStepConfirmationDelete

protected void checkLabelForStepConfirmationDelete(int numOfSelectedIssues,
                                                   int numOfSelectedProjects)
checks that that dynamic label in Step Confirmation for Delete Operation is correct

Parameters:
numOfSelectedIssues -
numOfSelectedProjects -

checkSideMenuLabel

protected void checkSideMenuLabel(int numOfSelectedIssues,
                                  int numOfSelectedProjects)
Checks that the dynamic label in the side menu of all the steps in bulk change is correct

Parameters:
numOfSelectedIssues -
numOfSelectedProjects -

checkIssuesAreListed

protected void checkIssuesAreListed(String prefix,
                                    int max)
Checks that issues with summary equal to the 'prefix' + i [0..max] are present

Parameters:
prefix -

checkIssuesAreNotListed

protected void checkIssuesAreNotListed(String prefix,
                                       int max)
Checks that issues with summary equal to the 'prefix' + i [0..max] are NOT present

Parameters:
prefix -

checkSideBarLinksInStepChooseIssues

protected void checkSideBarLinksInStepChooseIssues()
Checks the side menu links for whether they have the correct links available or not, and also if it is for the correct step.
This is for the step Choose Issues


checkSideBarLinksInStepChooseOperation

protected void checkSideBarLinksInStepChooseOperation()
Checks the side menu links for whether they have the correct links available or not, and also if it is for the correct step.
This is for the step Choose Operations


checkSideBarLinksInStepOperationDetails

protected void checkSideBarLinksInStepOperationDetails()
Checks the side menu links for whether they have the correct links available or not, and also if it is for the correct step.
This is for the step Operations Details


checkSideBarLinksInStepConfirmationForDeleteOp

protected void checkSideBarLinksInStepConfirmationForDeleteOp()
Checks the side menu links for whether they have the correct links available or not, and also if it is for the correct step. This is for the step Confirmation with operation as delete


checkSideBarLinksInStepConfirmationForEditOp

protected void checkSideBarLinksInStepConfirmationForEditOp()
Checks the side menu links for whether they have the correct links available or not, and also if it is for the correct step.
This is for the step Confirmation with operation as edit


checkMultipleProjectNote

protected void checkMultipleProjectNote()

checkLinkToStepChooseIssues

protected void checkLinkToStepChooseIssues()
Returns to Step Choose Issues using the side menu from the wizard and checks that the link is correct


checkLinkToStepChooseOperation

protected void checkLinkToStepChooseOperation()
Returns to Step Choose Operations using the side menu from the wizard and checks that the link is correct


checkLinkToStepOperationDetails

protected void checkLinkToStepOperationDetails()
Returns to Step Operation Details using the side menu from the wizard and checks that the link is correct



Copyright © 2002-2013 Atlassian. All Rights Reserved.