com.ibm.team.fvt.tests.clm.pages
Class ClmViewlet

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.ClmViewlet
Direct Known Subclasses:
CcmCurrentPlansViewlet, CcmOpenVsClosedWorkItemsViewlet, CcmWorkItemQueriesViewlet, CcmWorkItemsViewlet, ClmBookmarksViewlet, QmExecutionStatusUsingWeightViewlet, QmMyTasksViewlet, QmTestCasesImpactedByDefectsViewlet, RmRequirementsTracingViewlet

public abstract class ClmViewlet
extends com.ibm.team.fvt.tests.web.WebElementWrapper

Abstract class to manage viewlet displayed in CLM dashboard pages.

Following actions or functionalities are accessible at this level:

Following operations are also defined for the viewlet hierarchy:


Constructor Summary
ClmViewlet(com.ibm.team.fvt.tests.web.WebPage page, com.ibm.team.fvt.tests.web.WebBrowserElement webElement)
           
 
Method Summary
 CcmDevelopmentPlanRichHover checkDevelopmentPlanRichHover(java.lang.String plan, java.lang.String projectArea)
          Check the rich hover of the given development plan found in the current viewlet.
 QmTestCaseRichHover checkTestCaseRichHover(java.lang.String testCase, java.lang.String projectArea)
          Check the rich hover of the given test case found in the current viewlet.
 QmTestCaseRichHover checkTestCaseRichHover(java.lang.String parent, java.lang.String testCase, java.lang.String projectArea)
          Check the rich hover of the given test case found as a child of the given parent in the current viewlet.
 CcmWorkItemRichHover checkWortkItemRichHover(java.lang.String item, java.lang.String projectArea)
          Check the rich hover of the given work item found in the current viewlet.
 CcmWorkItemRichHover checkWortkItemRichHover(java.lang.String parent, java.lang.String item, java.lang.String projectArea)
          Check the rich hover of the given work item found as a child of the given parent in the current viewlet.
 com.ibm.team.fvt.tests.web.WebBrowserElement getResourceLinkElement(java.lang.String resource)
          Return the link element of the given resource.
 java.lang.String getTitle()
          Return the viewlet title.
 void validate()
          Validate the viewlet settings.
 void waitForLoadingEnd()
          Wait for the viewlet content to be loaded.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClmViewlet

public ClmViewlet(com.ibm.team.fvt.tests.web.WebPage page,
                  com.ibm.team.fvt.tests.web.WebBrowserElement webElement)
Method Detail

checkTestCaseRichHover

public QmTestCaseRichHover checkTestCaseRichHover(java.lang.String testCase,
                                                  java.lang.String projectArea)
Check the rich hover of the given test case found in the current viewlet.

This method opens the rich hover by positioning the mouse pointer over the given link element and checks it.

Parameters:
testCase - The test case name
projectArea - The project area title of the hovered resource
Returns:
The opened rich hover web element as WebBrowserElement
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - in following cases:
  • The rich hover is not found (typically when it fails to open)
  • The rich hover check fails

checkTestCaseRichHover

public QmTestCaseRichHover checkTestCaseRichHover(java.lang.String parent,
                                                  java.lang.String testCase,
                                                  java.lang.String projectArea)
Check the rich hover of the given test case found as a child of the given parent in the current viewlet.

This method opens the rich hover by positioning the mouse pointer over the given link element and checks it.

Parameters:
parent - The parent name. If null, then the link is searched inside the entire viewlet otherwise it's supposed to be a parent child.
testCase - The test case name
projectArea - The project area title of the hovered resource
Returns:
The opened rich hover web element as WebBrowserElement
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - in following cases:
  • The rich hover is not found (typically when it fails to open)
  • The rich hover check fails

checkDevelopmentPlanRichHover

public CcmDevelopmentPlanRichHover checkDevelopmentPlanRichHover(java.lang.String plan,
                                                                 java.lang.String projectArea)
Check the rich hover of the given development plan found in the current viewlet.

This method opens the rich hover by positioning the mouse pointer over the given link element and checks it.

Parameters:
plan - The development plan name
projectArea - The project area title of the hovered resource
Returns:
The opened rich hover web element as WebBrowserElement
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - in following cases:
  • The rich hover is not found (typically when it fails to open)
  • The rich hover check fails

checkWortkItemRichHover

public CcmWorkItemRichHover checkWortkItemRichHover(java.lang.String item,
                                                    java.lang.String projectArea)
Check the rich hover of the given work item found in the current viewlet.

This method opens the rich hover by positioning the mouse pointer over the given link element and checks it.

Parameters:
item - The work item name
projectArea - The project area title of the hovered resource
Returns:
The opened rich hover web element as WebBrowserElement
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - in following cases:
  • The rich hover is not found (typically when it fails to open)
  • The rich hover check fails

checkWortkItemRichHover

public CcmWorkItemRichHover checkWortkItemRichHover(java.lang.String parent,
                                                    java.lang.String item,
                                                    java.lang.String projectArea)
Check the rich hover of the given work item found as a child of the given parent in the current viewlet.

This method opens the rich hover by positioning the mouse pointer over the given link element and checks it.

Parameters:
parent - The parent name. If null, then the link is searched inside the entire viewlet otherwise it's supposed to be a parent child.
item - The work item name
projectArea - The project area title of the hovered resource
Returns:
The opened rich hover web element as WebBrowserElement
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - in following cases:
  • The rich hover is not found (typically when it fails to open)
  • The rich hover check fails

getResourceLinkElement

public com.ibm.team.fvt.tests.web.WebBrowserElement getResourceLinkElement(java.lang.String resource)
Return the link element of the given resource.

Parameters:
resource - The resource name or reference.
Returns:
The link element as a WebBrowserElement or null if the resource link was not found in the viewlet

getTitle

public java.lang.String getTitle()
Return the viewlet title.

Returns:
The title as a String

validate

public void validate()
Validate the viewlet settings.


waitForLoadingEnd

public void waitForLoadingEnd()
Wait for the viewlet content to be loaded.