com.ibm.team.fvt.tests.clm.pages.ccm
Class CcmWebViewPlanPage

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPage
      extended by com.ibm.team.fvt.tests.clm.pages.ClmWebPage
          extended by com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebPage
              extended by com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebProjectAreaPage
                  extended by com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebTabsPage
                      extended by com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebViewPlanPage
All Implemented Interfaces:
ClmWebPageConstants

public class CcmWebViewPlanPage
extends CcmWebTabsPage

Manage the CCM Plans web page.

The page address is given by CcmApplication.getPlansUrl(String, String).

Following features are accessible on this page:

Following methods are also defined or specialized by this page:


Field Summary
 
Fields inherited from class com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebTabsPage
AFFECTED_BY_DEFECT, AFFECTS_PLAN_ITEM, AFFECTS_REQUIREMENT, ELABORATES_BY_ARCHITECTURE_ELEMENT, IMPLEMENTS_REQUIREMENT, RELATED_TEST_CASE, TESTED_BY_TEST_CASE, TRACKS_REQUIREMENT
 
Fields inherited from class com.ibm.team.fvt.tests.web.WebPage
NO_DATA
 
Fields inherited from interface com.ibm.team.fvt.tests.clm.pages.ClmWebPageConstants
ADMINISTRATION_HOME_MENU_GROUP, JAZZ_TEAM_SERVER_HOME_MENU_ITEM, LIFECYCLE_PROJECT_ADMIN_MENU_ITEM, USER_NOT_AUTHORIZED_MESSAGE_ID, USER_NOT_AUTHORIZED_MESSAGE_LOCATOR
 
Constructor Summary
CcmWebViewPlanPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
           
 
Method Summary
 void addColumn(java.lang.String column)
          Add the given column to the current test plan.
 void addLinkTestedByNewTestCase(java.lang.String item, java.lang.String name, java.lang.String description, java.lang.String weight, ClmUser owner, java.lang.String testPhase)
          Add a new 'Tested By Test Case' link to the item
 void addLinkTestedByTestCase(java.lang.String item, java.lang.String testCase)
          Add an existing 'Tested By Test Case' link to the item
 void assignToOwner(java.lang.String item, ClmUser owner)
          Assign the given user as owner of the given item.
 void checkChildren(java.lang.String workItem, java.lang.String... children)
          Check that the given work item as the given children displayed on the current plan page.
<P extends com.ibm.team.fvt.tests.web.WebRichHover<? extends com.ibm.team.fvt.tests.web.WebPage>>
P
checkCollectionRichHover(java.lang.String resource, java.lang.Class<P> hoverClass, java.lang.String... additionalData)
          Check the rich hover title of the given collection.
<RH extends com.ibm.team.fvt.tests.web.WebRichHover<? extends com.ibm.team.fvt.tests.web.WebPage>>
RH
checkPlannedItemRichHover(java.lang.String resource, java.lang.String column, java.lang.Class<RH> hoverClass, java.lang.String... additionalData)
          Check the rich hover title for the given resource displayed in the given column.
 void createChildWorkItem(java.lang.String item, java.lang.String type, java.lang.String summary)
          Create a child work item for the item using the Actions menu 'Create Child Work Item'
 void createStoriesForCollection(java.lang.String collection)
          Create stories from the given collection requirements.
 CcmPlanIterationProgressElement getIterationProgressElement(java.lang.String iteration)
          Get progress element for the given iteration.
 com.ibm.team.fvt.tests.web.WebBrowserElement getLinkTypeElement(java.lang.String linkType)
          Return the element for a link type
 RmWebShowCollectionPage gotoCollectionPageUsingHover(java.lang.String collection)
          Goto the given RM collection page using the hover of the link displayed in the current page.
 QmWebViewTestPlanPage gotoTestPlanPageUsingHover(java.lang.String testPlan)
          Goto the given QM test plan page using the hover of the link displayed in the current page.
 CcmWebWorkItemPage gotoWorkItemPageUsingHover(java.lang.String workItem)
          Goto the given work item page using the hover of the link displayed in the current tab.
 void moveItem(java.lang.String item, java.lang.String destination, boolean above, boolean clearSelection)
          Move the given item above or below a destination item.
 void setPlanFor(java.lang.String item, java.lang.String iteration)
          Set 'Plan For' to a particular iteration for the given item
 void setStoryPoints(java.lang.String item, int points)
          Set story point for the given item.
 void setViewAs(java.lang.String selection)
          Set the 'View As' type from drop-down list selection.
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebTabsPage
selectTab
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebProjectAreaPage
createNewDevelopmentPlan, createNewWorkItem, createNewWorkItem, getProjectAreaName, getProjectAreaTitle, gotoDevelopmentPlanPage, gotoPlansPage, gotoQueriesPage, gotoReportsPage, gotoWorkItemPage, refreshContent, searchForArtifact
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.ClmWebPage
checkRichHover, clickHomeMenuItem, getBannerTitle, getCcmApplication, getConfig, getDmApplication, getJtsApplication, getLpaApplication, getMiniDashboard, getQmApplication, getRmApplication, getTitle, getUser, gotoCcmProjectPage, gotoCcmProjectPage, gotoDmProjectPage, gotoDmProjectPage, gotoJtsAdminHomePage, gotoLpaAllProjectsPage, gotoQmProjectPage, gotoQmProjectPage, gotoRmProjectPage, gotoRmProjectPage, logout, openAdminUIMenu, openHelpMenu, openHomeMenu, openMenu, openMenu, openToolbarMenu, openUserProfileMenu, refresh, save, waitWhileBusy
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebPage
changeUser, checkHoverTitle, checkRichHover, get, getBrowser, getLocation, getPage, getPage, getPageUsingBrowser, goBack, openPage, openPage, openPageUsingBrowser, openPageUsingHoverTitle, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, richHoverOverLink, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CcmWebViewPlanPage

public CcmWebViewPlanPage(java.lang.String url,
                          ClmConfig config,
                          com.ibm.team.fvt.tests.config.User user,
                          java.lang.String... data)
Method Detail

addColumn

public void addColumn(java.lang.String column)
Add the given column to the current test plan.

Parameters:
column - The name of the column to add.

assignToOwner

public void assignToOwner(java.lang.String item,
                          ClmUser owner)
Assign the given user as owner of the given item.

Parameters:
item - The item to assign
owner - New item owner

addLinkTestedByTestCase

public void addLinkTestedByTestCase(java.lang.String item,
                                    java.lang.String testCase)
Add an existing 'Tested By Test Case' link to the item

Parameters:
item - The item to add the test case to
testCase - The name of the test case

addLinkTestedByNewTestCase

public void addLinkTestedByNewTestCase(java.lang.String item,
                                       java.lang.String name,
                                       java.lang.String description,
                                       java.lang.String weight,
                                       ClmUser owner,
                                       java.lang.String testPhase)
Add a new 'Tested By Test Case' link to the item

This creates a new test case using the default test case template

Parameters:
item - The item to add the test case to
name - The name of the test case (mandatory)
description - The description of the test case (null if not used)
weight - The weight of the test case (null if default to be used)
owner - The owner of the test case (mandatory)
testPhase - The test phase of the test case (null if defalut to be used)

checkChildren

public void checkChildren(java.lang.String workItem,
                          java.lang.String... children)
Check that the given work item as the given children displayed on the current plan page.

Parameters:
workItem - The parent work item summary
children - The summaries list for of all expected children
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - If the work item children do not match the expected list.

checkCollectionRichHover

public <P extends com.ibm.team.fvt.tests.web.WebRichHover<? extends com.ibm.team.fvt.tests.web.WebPage>> P checkCollectionRichHover(java.lang.String resource,
                                                                                                                                    java.lang.Class<P> hoverClass,
                                                                                                                                    java.lang.String... additionalData)
Check the rich hover title of the given collection.

The collection is expected to a link in IMPLEMENTS_REQUIREMENT_COLLECTION section.

See Also:
ClmWebPage.checkRichHover(String, Class, String...)

checkPlannedItemRichHover

public <RH extends com.ibm.team.fvt.tests.web.WebRichHover<? extends com.ibm.team.fvt.tests.web.WebPage>> RH checkPlannedItemRichHover(java.lang.String resource,
                                                                                                                                       java.lang.String column,
                                                                                                                                       java.lang.Class<RH> hoverClass,
                                                                                                                                       java.lang.String... additionalData)
Check the rich hover title for the given resource displayed in the given column.

Parameters:
resource - The resource to check the hover
column - The column where the resource link is located
hoverClass - The expected class for the hover

createChildWorkItem

public void createChildWorkItem(java.lang.String item,
                                java.lang.String type,
                                java.lang.String summary)
Create a child work item for the item using the Actions menu 'Create Child Work Item'

Requires page View As: set to 'Iterations'

Parameters:
item - The item to create the child work item for
type - The type of child work item (i.e. 'Task')
summary - The summary to use for the new work item

createStoriesForCollection

public void createStoriesForCollection(java.lang.String collection)
Create stories from the given collection requirements.

Parameters:
collection - The collection name or title

getIterationProgressElement

public CcmPlanIterationProgressElement getIterationProgressElement(java.lang.String iteration)
Get progress element for the given iteration.

Parameters:
iteration - The name of the iteration (e.g. "Sprint 2")

getLinkTypeElement

public com.ibm.team.fvt.tests.web.WebBrowserElement getLinkTypeElement(java.lang.String linkType)
Return the element for a link type

Parameters:
linkType - The type of the link
Returns:
The link type element as a WebBrowserElement or null

gotoCollectionPageUsingHover

public RmWebShowCollectionPage gotoCollectionPageUsingHover(java.lang.String collection)
Goto the given RM collection page using the hover of the link displayed in the current page.

Note that this test the hover as we jump to the page through it's title link (see WebLinkHover.clickOnTitle()).

Parameters:
collection - The collection name to find the link in the current page.
Returns:
The opened RM collection page as RmWebShowCollectionPage.

gotoTestPlanPageUsingHover

public QmWebViewTestPlanPage gotoTestPlanPageUsingHover(java.lang.String testPlan)
Goto the given QM test plan page using the hover of the link displayed in the current page.

Note that this test the hover as we jump to the page through it's title link (see WebLinkHover.clickOnTitle()).

Parameters:
testPlan - The QM test plan name to find the link in the current page.
Returns:
The opened QM test plan page as QmWebViewTestPlanPage.

gotoWorkItemPageUsingHover

public CcmWebWorkItemPage gotoWorkItemPageUsingHover(java.lang.String workItem)
Goto the given work item page using the hover of the link displayed in the current tab.

Note that this test the hover as we jump to the page through it's title link (see WebLinkHover.clickOnTitle()).

Parameters:
workItem - The work item name to find the link in the current page.
Returns:
The opened CCM work item page as CcmWebWorkItemPage.

moveItem

public void moveItem(java.lang.String item,
                     java.lang.String destination,
                     boolean above,
                     boolean clearSelection)
Move the given item above or below a destination item.

Parameters:
item - The item to move
destination - The destination item of the move
above - Tell whether move above or below the destination
clearSelection - Tell whether the item line should be kept cleared after the move or keep it instead.

setPlanFor

public void setPlanFor(java.lang.String item,
                       java.lang.String iteration)
Set 'Plan For' to a particular iteration for the given item

Parameters:
item - The item to set 'Plan For'
iteration - The iteration to set as 'Plan For'

setStoryPoints

public void setStoryPoints(java.lang.String item,
                           int points)
Set story point for the given item.

Parameters:
item - The item to set story points
points - The points value TODO Handle the dialog when clicking on More... item

setViewAs

public void setViewAs(java.lang.String selection)
Set the 'View As' type from drop-down list selection.

Parameters:
selection - the view as selection name