com.ibm.team.fvt.tests.clm.pages.rm
Class RmWebShowCollectionPage

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.rm.RmWebPage
              extended by com.ibm.team.fvt.tests.clm.pages.rm.RmWebProjectAreaPage
                  extended by com.ibm.team.fvt.tests.clm.pages.rm.RmWebListPage
                      extended by com.ibm.team.fvt.tests.clm.pages.rm.RmWebShowArtifactPage
                          extended by com.ibm.team.fvt.tests.clm.pages.rm.RmWebShowCollectionPage
All Implemented Interfaces:
ClmWebPageConstants

public class RmWebShowCollectionPage
extends RmWebShowArtifactPage

Manage the collection RM web page.

The page address is something like: https://server:port/rm/web#action=com.ibm.rdm.web.pages.showArtifact&artifactURI==artifactURI.

Following actions are accessible in this page:

Following functionalities are also defined or specialized by this page:


Field Summary
 
Fields inherited from class com.ibm.team.fvt.tests.clm.pages.rm.RmWebShowArtifactPage
IMPLEMENTED_BY, TRACKED_BY, VALIDATED_BY
 
Fields inherited from class com.ibm.team.fvt.tests.clm.pages.rm.RmWebListPage
PAST_WEEK, TODAY, YESTERDAY
 
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
RmWebShowCollectionPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
           
 
Method Summary
 com.ibm.team.fvt.tests.web.WebBrowserElement addLinkToDevelopmenPlan(java.lang.String plan)
          Add a link to an existing development plan for the current collection.
 com.ibm.team.fvt.tests.web.WebBrowserElement addLinkToNewTestPlan(java.lang.String plan)
          Add a link to an new test plan for the current collection.
 void addRequirementsToCollection(java.lang.String... requirements)
          Add the given requirements to the current collection.
 void applyAttributeFilter(RmAttributeFilterCriteria criteria)
          Apply the given criteria to the attribute filter
 void applyTagFilter(java.lang.String searchText, java.lang.String operator, java.lang.String... tags)
          Apply the given tags to filter the artifacts to display.
 void applyViewFilter(java.lang.String view)
          Apply the given view filter
 RmArtifactRichHover<? extends RmWebPage> checkNameRichHover(java.lang.String resource)
          Check the rich hover for the given RM resource expected to be displayed in given column.
 RmArtifactRichHover<? extends RmWebPage> checkNameRichHover(java.lang.String resource, java.lang.String projectName)
          Check the rich hover for the given resource expected to be displayed in given column.
 void checkResourceLinksInTreeView(java.lang.String artifact, java.lang.String[] linkTypes, java.lang.String[] resources)
          Deprecated. Use RmWebListPage.checkResourceLinkElements(String, String[], String[], String[]) instead. Using this method will throw a ScenarioFailedError error while running your scenario.
 void checkResourceLinksInTreeView(java.lang.String artifact, java.lang.String[] linkTypes, java.lang.String[] resources, java.lang.String[] projectAreas)
          Check link elements in tree view for the given artifact.
 void clearAllFilters()
          Clears all the filters.
 void configureLinks(boolean inTreeView, java.lang.String... linkTypes)
          Configure links to show as a tree view.
 void createTag(java.lang.String tag, java.lang.String description, boolean isSharedType)
          Creates a tag by clicking the 'Add New Tag' icon in the 'Filter by Tag' section that appears on the left side bar in the Artifacts page, the Collections page, the Show Collection page, and the Modules page.
 void deleteTag(java.lang.String tag)
          Deletes the given tag by selecting the 'Delete' menu option from the popup-menu.
 boolean doesTagExist(java.lang.String tag)
          Check whether the given tag exists or not.
 void editTag(java.lang.String tag, java.lang.String newName, java.lang.String newDescription)
          Edit the tag with the given information.
 CcmWebViewPlanPage gotoDevelopmentPlanPageUsingHover(java.lang.String plan)
          Goto the given development plan page using the hover of the link displayed in the current page 'Links' section.
 QmWebViewTestPlanPage gotoTestPlanPageUsingHover(java.lang.String plan)
          Goto the given test plan page using the hover of the link displayed in the current page 'Links' section.
 void removeRequirementFromCollection(java.lang.String artifactName)
          Remove the given artifact from the current collection
 void saveView(java.lang.String view, java.lang.String description)
          Saves the current filter as a view by clicking the 'Save View' icon button.
 void selectAttributeFilterLimitByLifecycleStatus(java.lang.String kind, java.lang.String status)
          Select the 'Limit by lifecycle status' filter for the given kind of resource with the given status.
 void selectTagsForArtifact(java.lang.String artifact, java.lang.String... tags)
          Selects the list of existing tags to add to the given artifact by clicking the 'Select Tags for Artifact' menu option from the popup-menu.
 void setPageSize(java.lang.String pageSize)
          Sets the page size, that is, the number of artifacts to display on a page.
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.rm.RmWebShowArtifactPage
addComment, addComment, addLinkToArtifact, addLinkToArtifact, canBeModified, clickOnDoneButton, createReview, delete, deleteComment, getArtifactID, getArtifactName, getLinksItemElement, getTags, getTitle, isArtifactLocked, lockArtifact, openHistory, overrideArtifactlock, resolveComment, selectTags, unlockArtifact
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.rm.RmWebListPage
addColumns, checkResourceLinkElements, checkResourceLinkElements, clickOnCollection, clickOnModule, clickOnRequirement, editArtifactColumn, exists, exists, getArtifactsDisplayedCount, getArtifactsTotalCount, getResourceID, lockArtifact, refreshList, unlockArtifact
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.rm.RmWebProjectAreaPage
getProjectAreaName, getProjectAreaTitle, gotoArtifactsPage, gotoCollectionPage, gotoCollectionsPage, gotoModulePage, gotoModulesPage, gotoRequirementPage, searchForArtifact
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.rm.RmWebPage
getAdminUIPopupMenu, getAllProjectAreasPage, getHelpPopupMenu, getSidebarSectionItemsCount, getUserPopupMenu
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.ClmWebPage
checkRichHover, clickHomeMenuItem, getBannerTitle, getCcmApplication, getConfig, getDmApplication, getJtsApplication, getLpaApplication, getMiniDashboard, getQmApplication, getRmApplication, 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

RmWebShowCollectionPage

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

addLinkToDevelopmenPlan

public com.ibm.team.fvt.tests.web.WebBrowserElement addLinkToDevelopmenPlan(java.lang.String plan)
Add a link to an existing development plan for the current collection.

If the plan is already linked, nothing is done.

Parameters:
plan - The development plan to add link to
Returns:
The link element to the development plan as WebBrowserElement
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - If the added item is not found in the 'Links' section after the operation

addLinkToNewTestPlan

public com.ibm.team.fvt.tests.web.WebBrowserElement addLinkToNewTestPlan(java.lang.String plan)
Add a link to an new test plan for the current collection.

If the plan is already linked, nothing is done.

Parameters:
plan - The test plan to create and add link to
Returns:
The link element to the created test plan as WebBrowserElement
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - If the added item is not found in the 'Links' section after the operation

addRequirementsToCollection

public void addRequirementsToCollection(java.lang.String... requirements)
Add the given requirements to the current collection.

Do nothing for requirements which were already in the collection.

Parameters:
requirements - The list of requirement names to add

applyTagFilter

public void applyTagFilter(java.lang.String searchText,
                           java.lang.String operator,
                           java.lang.String... tags)
Description copied from class: RmWebListPage
Apply the given tags to filter the artifacts to display.

Parameters:
searchText - The search text used to narrow down the list of tags to select, can be null.
operator - The operator used in applying the given tags, can be null. Valid values are: "is any of", "is all of", "is not any of", "is not all of"
tags - List of Strings representing the tags to apply as a filter.

applyAttributeFilter

public void applyAttributeFilter(RmAttributeFilterCriteria criteria)
Description copied from class: RmWebListPage
Apply the given criteria to the attribute filter

Parameters:
criteria - The criteria to set

applyViewFilter

public void applyViewFilter(java.lang.String view)
Description copied from class: RmWebListPage
Apply the given view filter

Parameters:
view - The view to apply

checkNameRichHover

public RmArtifactRichHover<? extends RmWebPage> checkNameRichHover(java.lang.String resource)
Check the rich hover for the given RM resource expected to be displayed in given column.

Parameters:
resource - The resource name
Returns:
The opened rich hover web element as WebBrowserElement or null if the rich hover is closed after the check.

checkNameRichHover

public RmArtifactRichHover<? extends RmWebPage> checkNameRichHover(java.lang.String resource,
                                                                   java.lang.String projectName)
Check the rich hover for the given resource expected to be displayed in given column.

Parameters:
resource - The resource name
projectName - The project the resource belongs to
Returns:
The opened rich hover web element as WebBrowserElement or null if the rich hover is closed after the check.

checkResourceLinksInTreeView

@Deprecated
public void checkResourceLinksInTreeView(java.lang.String artifact,
                                                    java.lang.String[] linkTypes,
                                                    java.lang.String[] resources)
Deprecated. Use RmWebListPage.checkResourceLinkElements(String, String[], String[], String[]) instead. Using this method will throw a ScenarioFailedError error while running your scenario.

Check link elements in tree view for the given artifact.

The links are expected to be found in the given column names and pointing to the given resources.

If one resources slot is null, then the corresponding column is not expected to have any link.

Parameters:
artifact - The artifact name
linkTypes - The link types to show
resources - The resources expected to be found in given columns.
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - If one link is missing.

checkResourceLinksInTreeView

public void checkResourceLinksInTreeView(java.lang.String artifact,
                                         java.lang.String[] linkTypes,
                                         java.lang.String[] resources,
                                         java.lang.String[] projectAreas)
Check link elements in tree view for the given artifact.

The links are expected to be found in the given column names and pointing to the given resources.

If one resources slot is null, then the corresponding column is not expected to have any link.

Parameters:
artifact - The artifact name
linkTypes - The link types to show
resources - The resources expected to be found in given columns.
projectAreas - The project areas of the given resources
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - If one link is missing.

clearAllFilters

public void clearAllFilters()
Description copied from class: RmWebListPage
Clears all the filters.

Overrides:
clearAllFilters in class RmWebListPage

configureLinks

public void configureLinks(boolean inTreeView,
                           java.lang.String... linkTypes)
Configure links to show as a tree view.

Parameters:
inTreeView - Tell to show the link in tree view or not.
linkTypes - The link types to show

createTag

public void createTag(java.lang.String tag,
                      java.lang.String description,
                      boolean isSharedType)
Description copied from class: RmWebListPage
Creates a tag by clicking the 'Add New Tag' icon in the 'Filter by Tag' section that appears on the left side bar in the Artifacts page, the Collections page, the Show Collection page, and the Modules page.

Parameters:
tag - The name of the new tag
description - The description of the tag
isSharedType - Boolean indicating whether or not the tag should be shared or not (ie. personal).

deleteTag

public void deleteTag(java.lang.String tag)
Description copied from class: RmWebListPage
Deletes the given tag by selecting the 'Delete' menu option from the popup-menu.

Parameters:
tag - The tag to delete.

doesTagExist

public boolean doesTagExist(java.lang.String tag)
Description copied from class: RmWebListPage
Check whether the given tag exists or not.

Parameters:
tag - The tag to chec
Returns:
true if the tag exists, false otherwise

editTag

public void editTag(java.lang.String tag,
                    java.lang.String newName,
                    java.lang.String newDescription)
Description copied from class: RmWebListPage
Edit the tag with the given information.

Parameters:
tag - The tag to edit.
newName - The new name of the tag
newDescription - The new description of the tag

gotoDevelopmentPlanPageUsingHover

public CcmWebViewPlanPage gotoDevelopmentPlanPageUsingHover(java.lang.String plan)
Goto the given development plan page using the hover of the link displayed in the current page 'Links' section.

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

Parameters:
plan - The plan name to find the link in the current page.
Returns:
The opened CCM development plan page as CcmWebViewPlanPage.

gotoTestPlanPageUsingHover

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

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

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

removeRequirementFromCollection

public void removeRequirementFromCollection(java.lang.String artifactName)

Remove the given artifact from the current collection

Prerequisite 1: the Name column is displayed
Prerequisite 2: there isn't other artifact with the same name
Prerequisite 3: there isn't any checkbox checked

Parameters:
artifactName - - name of the artifact to be removed from the collection

saveView

public void saveView(java.lang.String view,
                     java.lang.String description)
Description copied from class: RmWebListPage
Saves the current filter as a view by clicking the 'Save View' icon button.

Parameters:
view - The name of the view
description - The description of the view

selectAttributeFilterLimitByLifecycleStatus

public void selectAttributeFilterLimitByLifecycleStatus(java.lang.String kind,
                                                        java.lang.String status)
Description copied from class: RmWebListPage
Select the 'Limit by lifecycle status' filter for the given kind of resource with the given status.

A few possible kinds of resource are valid and with specific status. Here all accepted kind with their corresponding possible status:

Parameters:
kind - The kind of resource to select.
status - The resource status to select.

selectTagsForArtifact

public void selectTagsForArtifact(java.lang.String artifact,
                                  java.lang.String... tags)
Description copied from class: RmWebListPage
Selects the list of existing tags to add to the given artifact by clicking the 'Select Tags for Artifact' menu option from the popup-menu.

Parameters:
artifact - The artifact to add the tags.
tags - The list of String objects representing the tags to apply to the artifact.

setPageSize

public void setPageSize(java.lang.String pageSize)
Description copied from class: RmWebListPage
Sets the page size, that is, the number of artifacts to display on a page.

Parameters:
pageSize - number of artifacts to display on a page (required)