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

public abstract class AbstractTestCreateWorklogAsField extends BaseJiraFuncTest
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 Details

  • 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

      public void testGoodFractionDuration() throws Exception
      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

      public void execLogWorkVisibleToCommentLevel(String commentLevel)
    • testLogWorkCommentsNotCopiedWhenCopyingDisabled

      public void testLogWorkCommentsNotCopiedWhenCopyingDisabled()
    • testLogWorkCommentsCopiedWhenCopyingEnabled

      public void testLogWorkCommentsCopiedWhenCopyingEnabled()
    • testLogWorkDateIsStartDate

      public void testLogWorkDateIsStartDate()
    • testChangeHistory

      public void testChangeHistory() throws Exception
      Throws:
      Exception