com.ibm.team.fvt.tests.clm.pages.dm
Class DmWebDocumentPage

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.dm.DmWebPage
              extended by com.ibm.team.fvt.tests.clm.pages.dm.DmWebProjectAreaPage
                  extended by com.ibm.team.fvt.tests.clm.pages.dm.DmWebDocumentPage
All Implemented Interfaces:
ClmWebPageConstants

public class DmWebDocumentPage
extends DmWebProjectAreaPage


Field Summary
static java.lang.String DERIVES_FROM
           
static java.lang.String ELABORATES
           
static java.lang.String RELATED_TO
           
 
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
DmWebDocumentPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user)
           
DmWebDocumentPage(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 addLink(java.lang.String kind, java.lang.String resource, java.lang.String projectAreaName, java.lang.String type)
          Add the given link type to the given resource for the current work item.
 java.lang.String getDocumentID()
           
 java.lang.String getDocumentTitle()
           
 com.ibm.team.fvt.tests.web.WebBrowserElement getLinkElement(java.lang.String resource, java.lang.String linkType)
          Get the element of the given resource for the given link.
 CcmWebWorkItemPage gotoDefectPageUsingHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement)
          Goto the given work item page using the hover of the given link.
 RmWebShowRequirementPage gotoRequirementPageUsingHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement)
          Goto the given requirement page using the hover of the given link.
 QmWebViewTestCasePage gotoTestCasePageUsingHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement)
          Goto the given test case page using the hover of the given link.
 com.ibm.team.fvt.tests.web.WebBrowserElement selectTab(java.lang.String tabName)
          Select the given tab in the current page.
 void setDocumentContent(java.lang.String text)
          Set the document content.
 void setDocumentTitle(java.lang.String title)
          Set the document title.
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.dm.DmWebProjectAreaPage
getProjectAreaName, getProjectAreaTitle, gotoDesignExplorerPage, gotoDocumentPage, gotoImportStatusPage, openNewDocument
 
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
 

Field Detail

ELABORATES

public static final java.lang.String ELABORATES
See Also:
Constant Field Values

DERIVES_FROM

public static final java.lang.String DERIVES_FROM
See Also:
Constant Field Values

RELATED_TO

public static final java.lang.String RELATED_TO
See Also:
Constant Field Values
Constructor Detail

DmWebDocumentPage

public DmWebDocumentPage(java.lang.String url,
                         ClmConfig config,
                         com.ibm.team.fvt.tests.config.User user)

DmWebDocumentPage

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

addLink

public com.ibm.team.fvt.tests.web.WebBrowserElement addLink(java.lang.String kind,
                                                            java.lang.String resource,
                                                            java.lang.String projectAreaName,
                                                            java.lang.String type)
Add the given link type to the given resource for the current work item.

The added link is checked by hovering and the work item is saved.

Parameters:
kind - The kind of link to be added
resource - The resource target
projectAreaName - The project area to link with
type - The resource type

getDocumentID

public java.lang.String getDocumentID()

getDocumentTitle

public java.lang.String getDocumentTitle()

getLinkElement

public com.ibm.team.fvt.tests.web.WebBrowserElement getLinkElement(java.lang.String resource,
                                                                   java.lang.String linkType)
Get the element of the given resource for the given link.

If the given resource is null, then it will return the first element found for the given link type.

Parameters:
resource - The resource name.
linkType - The type of the link
Returns:
The link element as a WebBrowserElement or null if the expected link does not exist.

gotoDefectPageUsingHover

public CcmWebWorkItemPage gotoDefectPageUsingHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement)
Goto the given work item page using the hover of the given link.

Parameters:
linkElement - The resource link
Returns:
The opened CCM work item page as CcmWebWorkItemPage.

gotoRequirementPageUsingHover

public RmWebShowRequirementPage gotoRequirementPageUsingHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement)
Goto the given requirement page using the hover of the given link.

Parameters:
linkElement - The resource link
Returns:
The opened RM work item page as RmWebShowRequirementPage.

gotoTestCasePageUsingHover

public QmWebViewTestCasePage gotoTestCasePageUsingHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement)
Goto the given test case page using the hover of the given link.

Parameters:
linkElement - The resource link
Returns:
The opened RM work item page as RmWebShowRequirementPage.

selectTab

public com.ibm.team.fvt.tests.web.WebBrowserElement selectTab(java.lang.String tabName)
Select the given tab in the current page.

Parameters:
tabName - The tab to select
Returns:
The selected tab as a WebBrowserElement.

setDocumentContent

public void setDocumentContent(java.lang.String text)
Set the document content.

Parameters:
text - New content for the document

setDocumentTitle

public void setDocumentTitle(java.lang.String title)
Set the document title.

Parameters:
title - New title for the document