public class BulkChangeWizardImpl extends Object implements BulkChangeWizard
BulkChangeWizard.BulkOperations, BulkChangeWizard.BulkOperationsCustom, BulkChangeWizard.BulkOperationsImpl, BulkChangeWizard.InputTypes, BulkChangeWizard.WizardState
Modifier and Type | Field and Description |
---|---|
protected static String |
BULK_EDIT_KEY |
protected static String |
ISSUE_TYPE_SELECT |
protected static String |
TARGET_PROJECT_ID |
protected static String |
TARGET_PROJECT_ID_TEMPLATE |
Constructor and Description |
---|
BulkChangeWizardImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
BulkChangeWizard |
cancel()
Cancels the wizard.
|
BulkChangeWizard |
checkActionForField(String fieldName)
Check the "Action" checkbox for the chosen field.
|
protected void |
checkCheckbox(String fieldName) |
protected void |
checkCheckbox(String checkboxName,
String value) |
BulkChangeWizard |
checkRetainForField(String fieldName)
Check the "Retain" checkbox for the chosen field.
|
protected void |
checkSameTargetForAllCheckbox() |
protected void |
chooseCustomRadioButton(String radiogroupName,
String radiobuttonValue) |
BulkChangeWizard |
chooseOperation(BulkChangeWizard.BulkOperations operation)
Select the bulk operation to perform.
|
protected void |
chooseOperationRadioButton(BulkChangeWizard.BulkOperations operation) |
BulkChangeWizard |
chooseTargetContextForAll(String projectName)
Chooses the target project for all issues to be moved to.
|
BulkChangeWizard |
chooseTargetContextForAll(String projectName,
String issueType)
Chooses the target project and issue type for all issues to be moved to.
|
BulkChangeWizard |
chooseTargetContextForEach(int numContextsToSelect,
String projectName)
Chooses the target project to be moved to for each of the issue types to be moved.
|
BulkChangeWizard |
chooseWorkflowTransition(BulkChangeWizard.BulkOperations workflowTransition)
Select the workflow transition to perform.
|
protected void |
clickOnConfirm() |
protected void |
clickOnLinkId(String id) |
protected void |
clickOnLinkWithText(String linkText) |
protected void |
clickOnNext() |
BulkChangeWizard |
complete()
Completes the wizard and performs the bulk operation.
|
BulkChangeWizard |
finaliseFields()
Completes the entering of fields in this screen.
|
BulkChangeWizard.WizardState |
getState()
Returns the current state of the wizard.
|
protected boolean |
pageContainsText(String text) |
BulkChangeWizard |
revertTo(BulkChangeWizard.WizardState state)
Reverts the wizard to any given previous stage.
|
protected void |
selectAllIssueCheckboxes() |
BulkChangeWizard |
selectAllIssues()
Selects all issues from the last search to operate on.
|
protected void |
selectEachTargetProject(int numContextsToSelect,
String projectName) |
protected void |
selectFirstTargetProject(String projectName) |
protected void |
selectIssueType(String issueType) |
BulkChangeWizard |
setFieldValue(BulkChangeWizard.InputTypes inputType,
String fieldName,
String value)
Set a value for a field.
|
BulkChangeWizard |
setFieldValue(String fieldName,
String value)
Set a value for a field.
|
protected void |
setSelectElement(String fieldName,
String value) |
protected void |
setTextElement(String fieldName,
String value) |
BulkChangeWizard |
waitForBulkChangeCompletion()
Waits until the bulk changes are completed.
|
protected static final String BULK_EDIT_KEY
protected static final String TARGET_PROJECT_ID
protected static final String ISSUE_TYPE_SELECT
protected static final String TARGET_PROJECT_ID_TEMPLATE
public BulkChangeWizardImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
public BulkChangeWizard selectAllIssues()
BulkChangeWizard
BulkChangeWizard.WizardState.SELECT_ISSUES
to perform this operation.
Once selected, the wizard will advance to BulkChangeWizard.WizardState.CHOOSE_OPERATION
.selectAllIssues
in interface BulkChangeWizard
public BulkChangeWizard chooseOperation(BulkChangeWizard.BulkOperations operation)
BulkChangeWizard
BulkChangeWizard.WizardState.CHOOSE_OPERATION
to perform this operation.
Once selected, the wizard will advance to BulkChangeWizard.WizardState.CHOOSE_TARGET_CONTEXTS
.chooseOperation
in interface BulkChangeWizard
operation
- the operation to performpublic BulkChangeWizard chooseWorkflowTransition(BulkChangeWizard.BulkOperations workflowTransition)
BulkChangeWizard
BulkChangeWizard.WizardState.CHOOSE_OPERATION
to perform this operation.
Once selected, the wizard will advancechooseWorkflowTransition
in interface BulkChangeWizard
public BulkChangeWizard chooseTargetContextForAll(String projectName)
BulkChangeWizard
BulkChangeWizard.BulkOperationsImpl.MOVE
, BulkChangeWizard.WizardState.CHOOSE_TARGET_CONTEXTS
to
perform this operation.
Once selected, the wizard will advance to BulkChangeWizard.WizardState.SET_FIELDS
.chooseTargetContextForAll
in interface BulkChangeWizard
projectName
- the name of the project to use in the target context e.g. monkey
public BulkChangeWizard chooseTargetContextForAll(String projectName, String issueType)
BulkChangeWizard
BulkChangeWizard.BulkOperationsImpl.MOVE
, BulkChangeWizard.WizardState.CHOOSE_TARGET_CONTEXTS
to
perform this operation.
Once selected, the wizard will advance to BulkChangeWizard.WizardState.SET_FIELDS
.chooseTargetContextForAll
in interface BulkChangeWizard
projectName
- the name of the project to use in the target context e.g. monkey
public BulkChangeWizard chooseTargetContextForEach(int numContextsToSelect, String projectName)
BulkChangeWizard
BulkChangeWizard.BulkOperationsImpl.MOVE
, BulkChangeWizard.WizardState.CHOOSE_TARGET_CONTEXTS
to
perform this operation.
Once selected, the wizard will advance to BulkChangeWizard.WizardState.SET_FIELDS
.chooseTargetContextForEach
in interface BulkChangeWizard
numContextsToSelect
- the expected number of contexts to be set.projectName
- the name of the project to use in the target context e.g. monkey
public BulkChangeWizard setFieldValue(String fieldName, String value)
BulkChangeWizard
BulkChangeWizard.WizardState.SET_FIELDS
to perform this operation.
Note: wizard does not advance after this operation; multiple calls to this method can be made. Once finished, call
BulkChangeWizard.finaliseFields()
.setFieldValue
in interface BulkChangeWizard
fieldName
- the name of the field to set e.g. components
, timetracking_originalestimate
value
- the value to set e.g. 10000
, 5h
BulkChangeWizard.finaliseFields()
,
BulkChangeWizard.setFieldValue(com.atlassian.jira.functest.framework.navigation.BulkChangeWizard.InputTypes, String, String)
public BulkChangeWizard setFieldValue(BulkChangeWizard.InputTypes inputType, String fieldName, String value)
BulkChangeWizard
BulkChangeWizard.WizardState.SET_FIELDS
to perform this operation.
Note: wizard does not advance after this operation; multiple calls to this method can be made. Once finished, call
BulkChangeWizard.finaliseFields()
.setFieldValue
in interface BulkChangeWizard
inputType
- the type of control you are using to set the field valuefieldName
- the name of the field to set e.g. components
, timetracking_originalestimate
value
- the value to set e.g. 10000
, 5h
BulkChangeWizard.finaliseFields()
public BulkChangeWizard checkRetainForField(String fieldName)
BulkChangeWizard
BulkChangeWizard.BulkOperationsImpl.MOVE
, BulkChangeWizard.WizardState.SET_FIELDS
to perform this operation.
Note: wizard does not advance after this operation; multiple calls to this method can be made. Once finished, call
BulkChangeWizard.finaliseFields()
.checkRetainForField
in interface BulkChangeWizard
fieldName
- the name of the fieldpublic BulkChangeWizard checkActionForField(String fieldName)
BulkChangeWizard
BulkChangeWizard.BulkOperationsImpl.EDIT
, BulkChangeWizard.WizardState.SET_FIELDS
to perform this operation.
Note: wizard does not advance after this operation; multiple calls to this method can be made. Once finished, call
BulkChangeWizard.finaliseFields()
.checkActionForField
in interface BulkChangeWizard
fieldName
- the name of the fieldpublic BulkChangeWizard finaliseFields()
BulkChangeWizard
BulkChangeWizard.WizardState.SET_FIELDS
to perform this operation.
If there are more field screens to complete, the wizard will remain in BulkChangeWizard.WizardState.SET_FIELDS
.
Otherwise, it will advance to BulkChangeWizard.WizardState.CONFIRMATION
.finaliseFields
in interface BulkChangeWizard
public BulkChangeWizard complete()
BulkChangeWizard
BulkChangeWizard.WizardState.CONFIRMATION
to perform this operation.
Once performed, the wizard will advance to BulkChangeWizard.WizardState.COMPLETE
. There is no further
state to advance to after this. This wizard instance should not be used again.complete
in interface BulkChangeWizard
public BulkChangeWizard waitForBulkChangeCompletion()
BulkChangeWizard
Wizard must be in BulkChangeWizard.WizardState.COMPLETE
state to
perform this operation.
This operation doesn't change the wizard state.
waitForBulkChangeCompletion
in interface BulkChangeWizard
public BulkChangeWizard revertTo(BulkChangeWizard.WizardState state)
BulkChangeWizard
revertTo
in interface BulkChangeWizard
public BulkChangeWizard cancel()
BulkChangeWizard
BulkChangeWizard.WizardState.COMPLETE
.
Once performed the wizard will set itself to state BulkChangeWizard.WizardState.COMPLETE
.cancel
in interface BulkChangeWizard
BulkChangeWizard.complete()
public BulkChangeWizard.WizardState getState()
BulkChangeWizard
getState
in interface BulkChangeWizard
protected void clickOnNext()
protected void clickOnConfirm()
protected void selectAllIssueCheckboxes()
protected void chooseOperationRadioButton(BulkChangeWizard.BulkOperations operation)
protected void chooseCustomRadioButton(String radiogroupName, String radiobuttonValue)
protected void selectFirstTargetProject(String projectName)
protected void selectIssueType(String issueType)
protected void selectEachTargetProject(int numContextsToSelect, String projectName)
protected void checkSameTargetForAllCheckbox()
protected void checkCheckbox(String fieldName)
protected boolean pageContainsText(String text)
protected void clickOnLinkId(String id)
protected void clickOnLinkWithText(String linkText)
Copyright © 2002-2019 Atlassian. All Rights Reserved.