Class TestDraftWorkflowSchemeMigration
- Since:
- v5.2
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.jira.webtests.ztests.workflow.AbstractTestWorkflowSchemeMigration
AbstractTestWorkflowSchemeMigration.IssueAssertions -
Field Summary
Fields inherited from class com.atlassian.jira.webtests.ztests.workflow.AbstractTestDraftWorkflowSchemeMigration
COPY_2_OF_SOURCE_WORKFLOW_SCHEME, COPY_OF_SOURCE_WORKFLOW_SCHEME, COPY_OF_SOURCE_WORKFLOW_SCHEME_DESCRIPTION, DRAFT_WORKFLOW_MAPPING, SOURCE_SCHEME_DESCRIPTION, SOURCE_SCHEME_ID, SOURCE_SCHEME_WORKFLOW_MAPPING, TEST_PROJECT_ID, TEST_PROJECT_ID_II, TEST_PROJECT_KEY_II, TEST_PROJECT_NAME_IIFields inherited from class com.atlassian.jira.webtests.ztests.workflow.AbstractTestWorkflowSchemeMigration
ACKNOWLEDGE, CLOSED_STATUS_NAME, CUSTOM_STATUS_1, CUSTOM_STATUS_2, CUSTOM_STATUS_3, CUSTOM_STATUS_4, DESTINATION_WORKFLOW, DESTINATION_WORKFLOW_SCHEME, DONE, FIX_VERSIONS_FIELD_ID, HOMOSAPIEN_PROJECT_NAME, IN_PROGRESS_STATUS_NAME, JIRA_DEFAULT_WORKFLOW, REOPENED_STATUS_NAME, RESOLUTION_FIELD_ID, RESOLVED_STATUS_NAME, SOURCE_WORKFLOW_1, SOURCE_WORKFLOW_2, SOURCE_WORKFLOW_SCHEME, STATUS_FIELD_ID, SUMMARY_FIELD_ID, TEST_PROJECT_KEY, TEST_PROJECT_NAME, TRANSITION_NAME_GO_CUSTOM, WORKFLOW_FIELD_ID, WORKFLOW_HOMOSAPIEN_CUSTOM_ISSUETYPE_DESTINATION, WORKFLOW_HOMOSAPIEN_CUSTOM_ISSUETYPE_SOURCE, WORKFLOW_HOMOSAPIEN_SOURCE_1, WORKFLOW_HOMOSAPIEN_SOURCE_2, WORKFLOW_HOMOSPIEN_DESTINATIONFields inherited from class com.atlassian.jira.functest.framework.BaseJiraFuncTest
assertions, backdoor, environmentData, initClass, navigation, tester, testRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidEnsure the issue verifier detects problems before issues are migrated through workflowvoidTests that 2 users can look at the same task and get their proper view of it, eg the starter can acknowledge and the other person cantvoidvoidTests workflow migration with previously failed migration.voidA general workflow migration test that tests quite a few cases.voidTests workflow migration with previously failed migtaion.voidTests workflow migration with previously failed migration.Methods inherited from class com.atlassian.jira.webtests.ztests.workflow.AbstractTestDraftWorkflowSchemeMigration
assertDraft, assertInactiveSchemeExists, assertMultiAdminTaskProgressFlow, assertNoDraft, assertNoScheme, assertScheme, assertScheme, assertSchemeAndNoDraft, assertSchemeId, assertSchemeIdChanged, publishDraftMethods inherited from class com.atlassian.jira.webtests.ztests.workflow.AbstractTestWorkflowSchemeMigration
assertIssuesAfterMigrationWithUnupdatedWorkflowScheme, assertIssuesInHomosapienProjectAfterHalfMigratedDataNewDestination, assertIssuesMigratedAndChangeHistory, assertIssueVerifierErrorMessages, assertJqlResults, assertMappingAndSelectOptionsForHalfMigratedDataNewDestination, assertStandardIssues, checkIssuesInTestProjectAfterHalfMigratedDataNewDestination, createTestWorkflowMigrationMapping, getIssue, item, mappings, waitForFailedMigration, waitForSuccessfulWorkflowActivation, waitForSuccessfulWorkflowSchemeMigrationMethods inherited from class com.atlassian.jira.functest.framework.BaseJiraFuncTest
getAssertions, getBackdoor, getEnvironmentData, getTester
-
Constructor Details
-
TestDraftWorkflowSchemeMigration
public TestDraftWorkflowSchemeMigration()
-
-
Method Details
-
testDrafWorkflowRemovedWhenInactive
public void testDrafWorkflowRemovedWhenInactive() -
testDrafWorkflowRemovedWhenInactiveWithIssues
public void testDrafWorkflowRemovedWhenInactiveWithIssues() -
testWorkflowMigration
public void testWorkflowMigration() -
testWorkflowMigrationHalfMigratedData
public void testWorkflowMigrationHalfMigratedData()Tests workflow migration with previously failed migration.Imports a project which is still associated with its 'old' workflow scheme but issues TST-1, TST-2, TST-5 and TST-10 have been migrated to new workflows in the new workflow scheme
This test migrates the issues again.
-
testWorkflowMigrationWithUnupdatedIssue
public void testWorkflowMigrationWithUnupdatedIssue()Tests workflow migration with previously failed migtaion.Restore data where a workflow migration migrates issues TST-1, TST-2, TST-5 and TST-10 then creates a new wf entry for TST-4, marks an existing wf entry as killed, creates a new current step, removes the old one, and then dies. So we have a project which is still associated with its 'old' workflow scheme But some issues have been migrated to workflows in the new workflow scheme
This test migrates the issues again.
-
testWorkflowMigrationWithUnupdatedWorkflowScheme
public void testWorkflowMigrationWithUnupdatedWorkflowScheme()Tests workflow migration with previously failed migration.Restores data where a workflow migration dies after migrating all issues but without saving the changes from the draft and deleting it. So we have a project which is still associated with its 'old' workflow scheme But all issues have been migrated to workflows in the new workflow scheme
This test migrates the issues again.
-
testWorkflowMigrationHalfMigratedDataNewDestination
A general workflow migration test that tests quite a few cases. The test begins with imported data containing issues in Test project and Homosapien project and then migrates issues in Homosapien project from Homosapien Source Scheme workflow scheme to Homosapien Source Scheme draft. The Homosapien Source Scheme and its draft use different workflows for different issue types. Some issues in the Homosapien project are also 'broken' due to a previously failed workflow migration. The state of issues in the Homospaien project and where they are being migrated is discussed below:- Bugs
- Some of the Bugs have been migrated from Homosapien Source 1 workflow to Homospien
Destination Failure workflow. The migration failed before completion. When project workflow migration failed it
left some issues using Homospien Destination Failure and some issues using the old (Homosapien Source 1)
workflow. The data is in the state such that the issues that are using the Homospien Destination Failure workflow
are in statuses that do not exist in the Homosapien Source 1 workflow. These statuses are:
- In Progress
- Closed
- Custom Status 4
- Improvements
- Improvements are being migrated from Homosapien Source 2 to the default jira workflow.
- New Features
- New Features are already using Homospien Destination workflow, so they should not be
migrated at all.
- Tasks
- The source workflow for the Task is 'Homospien Destination' so normally we would not need to
do any migration (as the destination workflow is also Homospien Destination. However, the previously failed
migration has moved some of the Tasks to the Homospien Destination Failure workflow. These issues need to be
moved (back) to the 'Homospien Destination' workflow. Hence we will need to get mapping for statuses:
- In Progress
- Closed
- Sub-Tasks
- Sub-Tasks are using the Homosapien Source 1 workflow and are being migrated to the
Homospien Destination workflow. There are no broken Sub-Tasks.
- Custom Issue Type
- Issues of Custom Issue Type are moving between Homosapien Custom Issue Type Source workflow and Homosapien Custom Issue Type Destination. All the statuses in Custom Issue Type Source workflow are in Homosapien Custom Issue Type Destination as well, so no status mapping should appear for Custom Issue Type issues
-
The test also ensures that while migrating issues for the Homosapien project, the issues in Test project were not
touched.
- Throws:
SAXException
-
testIssueVerifierError
public void testIssueVerifierError()Ensure the issue verifier detects problems before issues are migrated through workflow -
testMultiAdminTaskProgressFlow
public void testMultiAdminTaskProgressFlow()Tests that 2 users can look at the same task and get their proper view of it, eg the starter can acknowledge and the other person cant
-