com.ibm.team.fvt.tests.clm.pages.elements
Class CcmPlanIterationProgressElement

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPageElement
      extended by com.ibm.team.fvt.tests.web.WebElementWrapper
          extended by com.ibm.team.fvt.tests.clm.pages.elements.CcmPlanIterationProgressElement

public class CcmPlanIterationProgressElement
extends com.ibm.team.fvt.tests.web.WebElementWrapper

Class to manage CCM Iteration Progress web element

This class provide the following features:

Following functionalities are also defined or specialized by this page:


Constructor Summary
CcmPlanIterationProgressElement(com.ibm.team.fvt.tests.web.WebPage page, org.openqa.selenium.By findBy)
           
 
Method Summary
 void closeHover()
          Close the opened hover.
 java.lang.String getCompleted()
          Returns the completed items rate.
 java.lang.String getEstimated(boolean hover, boolean points)
          Returns the estimated items rate.
 CcmPlanIterationProgressBarHover getProgressBarHover()
          Hovers over the progress bar and returns the it.
 java.lang.String getProgressPoints(boolean hover)
          Returns the progress done using story points.
 java.lang.String getProgressTime(boolean hover)
          Returns the progress done using time.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CcmPlanIterationProgressElement

public CcmPlanIterationProgressElement(com.ibm.team.fvt.tests.web.WebPage page,
                                       org.openqa.selenium.By findBy)
Method Detail

closeHover

public void closeHover()
Close the opened hover.

Nothing happens if there was no hover opened over the progress bar.


getCompleted

public java.lang.String getCompleted()
Returns the completed items rate.

The returned string will have the following format:

Items completed: val out of max (percent%)

Note that this action opens the hover which will stay opened after the value was returned. It needs to be explicitly closed using the closeHover() method.

Returns:
The completed items percentage as a String.

getEstimated

public java.lang.String getEstimated(boolean hover,
                                     boolean points)
Returns the estimated items rate.

If hover is requested to get this value then the returned string has the following format:

Items estimated: percent%
otherwise it will have the following one:
Estimated: percent%

Note that if hover is requested it stay opened after the value was returned. It needs to be explicitly closed using the closeHover() method.

Parameters:
hover - Tells whether the hover will be used to get the value or not
points - Tells whether points should be used or not
Returns:
The estimated items percentage as a String.

getProgressBarHover

public CcmPlanIterationProgressBarHover getProgressBarHover()
Hovers over the progress bar and returns the it.

Returns:
The hover web element as a CcmPlanIterationProgressBarHover.

getProgressPoints

public java.lang.String getProgressPoints(boolean hover)
Returns the progress done using story points.

If hover is requested to get this value then the returned string has the following format:

Story points done: val of max
otherwise it will have the following one:
Progress: val/max pts

Note that if hover is requested it stay opened after the value was returned. It needs to be explicitly closed using the closeHover() method.

Parameters:
hover - Tells whether the hover will be used to get the value or not
Returns:
The progress as a String.

getProgressTime

public java.lang.String getProgressTime(boolean hover)
Returns the progress done using time.

If hover is requested to get this value then the returned string has the following format:

Work hours done: val of max
otherwise it will have the following one:
Progress: val/max h

Note that if hover is requested it stay opened after the value was returned. It needs to be explicitly closed using the closeHover() method.

Parameters:
hover - Tells whether the hover will be used to get the value or not
Returns:
The progress as a String.