public class TimeTrackingImpl extends AbstractFuncTestUtil implements TimeTracking
TimeTracking.Format, TimeTracking.Mode, TimeTracking.UnitenvironmentData, FS, locators, logger, logIndentLevel, testerTIME_TRACKING_ADMIN_PAGE| Constructor and Description |
|---|
TimeTrackingImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Disables Time Tracking
|
void |
disableCopyingOfComments()
Disables and re-enables time tracking with the "Copying of comments to work description" disabled.
|
void |
enable(String hoursPerDay,
String daysPerWeek,
String format,
String defaultUnit,
TimeTracking.Mode mode)
Activate time tracking with non-default options.
|
void |
enable(String hoursPerDay,
String daysPerWeek,
TimeTracking.Format format,
TimeTracking.Unit defaultUnit,
TimeTracking.Mode mode)
Activate time tracking with non-default options.
|
void |
enable(TimeTracking.Format format)
Activate time tracking with default options.
|
void |
enable(TimeTracking.Mode mode)
Activate time tracking with default options.
|
protected Navigation |
getNavigation() |
boolean |
isIn(TimeTracking.Mode mode)
Whether Time tracking is active in a specified mode.
|
void |
switchFormat(TimeTracking.Format format)
Short-hand for disabling and then enabling Time Tracking using the specified fromat.
|
void |
switchMode(TimeTracking.Mode mode)
Short-hand for disabling and then enabling Time Tracking into the specified mode.
|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPagepublic TimeTrackingImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData)
public void enable(TimeTracking.Mode mode)
TimeTrackingActivate time tracking with default options.
NOTE: You need to call TimeTracking.disable() if Time Tracking is already enabled.
enable in interface TimeTrackingmode - The time tracking mode to be set.public void switchMode(TimeTracking.Mode mode)
TimeTrackingswitchMode in interface TimeTrackingmode - the mode to enable.public void enable(TimeTracking.Format format)
TimeTrackingActivate time tracking with default options.
NOTE: You need to call TimeTracking.disable() if Time Tracking is already enabled.
enable in interface TimeTrackingformat - The time tracking format to be set.public void enable(String hoursPerDay, String daysPerWeek, String format, String defaultUnit, TimeTracking.Mode mode)
TimeTrackingActivate time tracking with non-default options.
NOTE: You need to call TimeTracking.disable() if Time Tracking is already enabled.
enable in interface TimeTrackinghoursPerDay - the number of hours in a day. specified as a string so you can use "5.5"daysPerWeek - the number of days in a week. specified as a string so you can use "3.5"format - the display format used ("pretty", "days", "hours")defaultUnit - default unit for time tracking entry ("minute", "hour", "day", "week")mode - The time tracking mode to be set. It can be MODERN (original estimate and remaining estimate can be
edited independently), and LEGACY (original estimate can only be edited before logging work and after that you
can only edit the remaining estimate).public void enable(String hoursPerDay, String daysPerWeek, TimeTracking.Format format, TimeTracking.Unit defaultUnit, TimeTracking.Mode mode)
TimeTrackingActivate time tracking with non-default options.
NOTE: You need to call TimeTracking.disable() if Time Tracking is already enabled.
enable in interface TimeTrackinghoursPerDay - the number of hours in a day. specified as a string so you can use "5.5"daysPerWeek - the number of days in a week. specified as a string so you can use "3.5"format - the display format used ("pretty", "days", "hours")defaultUnit - default unit for time tracking entry ("minute", "hour", "day", "week")mode - The time tracking mode to be set. It can be MODERN (original estimate and remaining estimate can be
edited independently), and LEGACY (original estimate can only be edited before logging work and after that you
can only edit the remaining estimate).public void disable()
TimeTrackingDisables Time Tracking
.NOTE: You need to call this before enabling Time Tracking if it is already enabled.
disable in interface TimeTrackingprotected Navigation getNavigation()
public boolean isIn(TimeTracking.Mode mode)
TimeTrackingNOTE: If time tracking is disabled this method will return false.
isIn in interface TimeTrackingmode - The mode to check.public void disableCopyingOfComments()
TimeTrackingdisableCopyingOfComments in interface TimeTrackingpublic void switchFormat(TimeTracking.Format format)
TimeTrackingswitchFormat in interface TimeTrackingformat - the fromat to enable.Copyright © 2002-2015 Atlassian. All Rights Reserved.