|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.functest.framework.navigation.AbstractBulkChangeWizard
public abstract class AbstractBulkChangeWizard
Abstract implementation of the BulkChangeWizard
. Defines the state and operations of the wizard. Specific
details on how to drive the wizard are supplied by the implementations for func tests and selenium tests.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.navigation.BulkChangeWizard |
---|
BulkChangeWizard.BulkOperations, BulkChangeWizard.InputTypes, BulkChangeWizard.WizardState |
Field Summary | |
---|---|
protected static String |
BULK_EDIT_KEY
|
protected static String |
SAME_FOR_ALL
|
protected static String |
TARGET_PROJECT_ID
|
Constructor Summary | |
---|---|
AbstractBulkChangeWizard()
|
Method Summary | |
---|---|
BulkChangeWizard |
checkActionForField(String fieldName)
Check the "Action" checkbox for the chosen field. |
protected abstract void |
checkCheckbox(String fieldName)
|
protected abstract void |
checkCheckbox(String checkboxName,
String value)
|
BulkChangeWizard |
checkRetainForField(String fieldName)
Check the "Retain" checkbox for the chosen field. |
protected abstract void |
checkSameTargetForAllCheckbox()
|
BulkChangeWizard |
chooseOperation(BulkChangeWizard.BulkOperations operation)
Select the bulk operation to perform. |
protected abstract void |
chooseOperationRadioButton(BulkChangeWizard.BulkOperations operation)
|
BulkChangeWizard |
chooseTargetContextForAll(String projectName)
Chooses the target project for all issues to be moved to. |
protected abstract void |
clickOnConfirm()
|
protected abstract void |
clickOnNext()
|
BulkChangeWizard |
complete()
Completes the wizard and performs the bulk operation. |
BulkChangeWizard |
finaliseFields()
Completes the entering of fields in this screen. |
protected abstract boolean |
pageContainsText(String text)
|
protected abstract void |
selectAllIssueCheckboxes()
|
BulkChangeWizard |
selectAllIssues()
Selects all issues from the last search to operate on. |
protected abstract void |
selectFirstTargetProject(String projectName)
|
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 abstract void |
setSelectElement(String fieldName,
String value)
|
protected abstract void |
setTextElement(String fieldName,
String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String SAME_FOR_ALL
protected static final String BULK_EDIT_KEY
protected static final String TARGET_PROJECT_ID
Constructor Detail |
---|
public AbstractBulkChangeWizard()
Method Detail |
---|
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 perform
public BulkChangeWizard chooseTargetContextForAll(String projectName)
BulkChangeWizard
BulkChangeWizard.BulkOperations.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 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.BulkOperations.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 field
public BulkChangeWizard checkActionForField(String fieldName)
BulkChangeWizard
BulkChangeWizard.BulkOperations.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 field
public 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
protected abstract void clickOnNext()
protected abstract void clickOnConfirm()
protected abstract void selectAllIssueCheckboxes()
protected abstract void chooseOperationRadioButton(BulkChangeWizard.BulkOperations operation)
protected abstract void selectFirstTargetProject(String projectName)
protected abstract void checkSameTargetForAllCheckbox()
protected abstract void setTextElement(String fieldName, String value)
protected abstract void setSelectElement(String fieldName, String value)
protected abstract void checkCheckbox(String fieldName)
protected abstract void checkCheckbox(String checkboxName, String value)
protected abstract boolean pageContainsText(String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |