Class AbstractTestCreateWorklogAsField
java.lang.Object
com.atlassian.jira.functest.framework.BaseJiraFuncTest
com.atlassian.jira.webtests.ztests.timetracking.modern.AbstractTestCreateWorklogAsField
- Direct Known Subclasses:
TestCreateWorklogOnCloseTransition,TestCreateWorklogOnCreateIssue,TestCreateWorklogOnEditIssue,TestCreateWorklogOnResolveTransition
Definition of functional tests for the "log work" system field. The field can be placed in various different contexts
which have different business logic. Implementors of this class will define a
LogWorkRunner which will allow
the tests to be exercised in a specific context.- Since:
- v4.2
-
Field Summary
FieldsFields inherited from class com.atlassian.jira.functest.framework.BaseJiraFuncTest
backdoor, environmentData, initClass, navigation, tester, testRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecLogWorkVisibleToCommentLevel(String commentLevel) voidprotected abstract com.atlassian.jira.webtests.ztests.timetracking.modern.LogWorkRunnervoidrestore()voidvoidvoidvoidvoidErrors should be reported if the "Time Spent" field or the hideable "new estimate" field (if "Set estimated time remaining" radio button has been selected) contains an invalid duration string.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidErrors should be reported on the "Time Spent" field, "Start Date" field and hideable "new estimate" field if "Set estimated time remaining" radio button has been selected, if they are empty.voidvoidvoidvoidMethods inherited from class com.atlassian.jira.functest.framework.BaseJiraFuncTest
getAssertions, getBackdoor, getEnvironmentData, getTester
-
Field Details
-
HSP_1
- See Also:
-
HSP_2
- See Also:
-
-
Constructor Details
-
AbstractTestCreateWorklogAsField
public AbstractTestCreateWorklogAsField()
-
-
Method Details
-
getLogWorkRunner
protected abstract com.atlassian.jira.webtests.ztests.timetracking.modern.LogWorkRunner getLogWorkRunner()- Returns:
- the LogWorkRunner implementation to use when running the tests.
-
restore
public void restore() -
testWorklogNoPermToCreate
public void testWorklogNoPermToCreate() -
testWorklogTimeTrackingDisabled
public void testWorklogTimeTrackingDisabled() -
testLogWorkLeaveEstimateNoteCorrect
public void testLogWorkLeaveEstimateNoteCorrect() -
testMandatoryFields
public void testMandatoryFields()Errors should be reported on the "Time Spent" field, "Start Date" field and hideable "new estimate" field if "Set estimated time remaining" radio button has been selected, if they are empty. -
testInvalidFormattedDurationFields
public void testInvalidFormattedDurationFields()Errors should be reported if the "Time Spent" field or the hideable "new estimate" field (if "Set estimated time remaining" radio button has been selected) contains an invalid duration string. Valid durations strings include "4d 6h", "30m", etc. -
testBadFractionDuration
public void testBadFractionDuration() -
testGoodFractionDuration
- Throws:
Exception
-
testInvalidTimeSpentZero
public void testInvalidTimeSpentZero() -
testInvalidStartDateField
public void testInvalidStartDateField() -
testAutoAdjustEstimate
public void testAutoAdjustEstimate() -
testNewEstimate
public void testNewEstimate() -
testLeaveExistingEstimate
public void testLeaveExistingEstimate() -
testManuallyAdjustEstimate
public void testManuallyAdjustEstimate() -
testLogWorkVisibleToAll
public void testLogWorkVisibleToAll() -
testLogWorkVisibleToAllDaysTimeFormat
public void testLogWorkVisibleToAllDaysTimeFormat() -
testLogWorkVisibleToAllHoursTimeFormat
public void testLogWorkVisibleToAllHoursTimeFormat() -
testLogWorkVisibleToRole
public void testLogWorkVisibleToRole() -
testLogWorkVisibleToRoleDaysTimeFormat
public void testLogWorkVisibleToRoleDaysTimeFormat() -
testLogWorkVisibleToRoleHoursTimeFormat
public void testLogWorkVisibleToRoleHoursTimeFormat() -
testLogWorkVisibleToGroup
public void testLogWorkVisibleToGroup() -
testLogWorkVisibleToGroupDaysTimeFormat
public void testLogWorkVisibleToGroupDaysTimeFormat() -
testLogWorkVisibleToGroupHoursTimeFormat
public void testLogWorkVisibleToGroupHoursTimeFormat() -
execLogWorkVisibleToGroup
public void execLogWorkVisibleToGroup() -
execLogWorkVisibleToCommentLevel
-
testLogWorkCommentsNotCopiedWhenCopyingDisabled
public void testLogWorkCommentsNotCopiedWhenCopyingDisabled() -
testLogWorkCommentsCopiedWhenCopyingEnabled
public void testLogWorkCommentsCopiedWhenCopyingEnabled() -
testLogWorkDateIsStartDate
public void testLogWorkDateIsStartDate() -
testChangeHistory
- Throws:
Exception
-