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

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
All Implemented Interfaces:
ClmWebPageConstants
Direct Known Subclasses:
CcmWebNewPlanPage, CcmWebPlansPage, CcmWebQueriesPage, CcmWebQueryPage, CcmWebReportsPage, CcmWebTabsPage

public abstract class CcmWebProjectAreaPage
extends CcmWebPage

Abstract class to manage common actions to any CCM application web page which is displaying project area information.

The page address of this kind of page starts with:

 https://server:port/ccm/web/projects/project area title
 

Following actions or functionalities 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.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
CcmWebProjectAreaPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
           
 
Method Summary
 CcmWebViewPlanPage createNewDevelopmentPlan(java.lang.String plan, java.lang.String type, java.lang.String owner, java.lang.String iteration)
          Create a new development plan and open the CCM web page on it.
 CcmWebWorkItemPage createNewWorkItem(java.lang.String summary, java.lang.String type)
          Create new work item of given type with given name using the menu bar.
 CcmWebWorkItemPage createNewWorkItem(java.lang.String summary, java.lang.String type, java.lang.String projectArea)
          Create new work item of given type with given name using the menu bar.
 java.lang.String getProjectAreaName()
           
 java.lang.String getProjectAreaTitle()
           
 CcmWebViewPlanPage gotoDevelopmentPlanPage(java.lang.String plan)
          Go to the given development plan page through the 'Plans' menu bar.
 CcmWebPlansPage gotoPlansPage(java.lang.String type)
          Go to the given Plans page using specific browse item of 'Plans' menu bar.
 CcmWebQueriesPage gotoQueriesPage(boolean shared)
          Go to the Shared Queries or My Queries page using specific browse item of 'Work Items' menu bar.
 CcmWebReportsPage gotoReportsPage(java.lang.String type)
          Go to My Reports or Shared Reports or Report Resources using 'Reports' menu bar.
 CcmWebWorkItemPage gotoWorkItemPage(java.lang.String workItem)
          Go to the given work item page through the 'Work Items' menu bar.
 void refreshContent()
          Refresh the page by clicking on the 'Refresh' button.
 java.util.List<com.ibm.team.fvt.tests.web.WebBrowserElement> searchForArtifact(java.lang.String scope, java.lang.String searchText)
          Search for an artifact using Quick Search.
 
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

CcmWebProjectAreaPage

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

createNewDevelopmentPlan

public CcmWebViewPlanPage createNewDevelopmentPlan(java.lang.String plan,
                                                   java.lang.String type,
                                                   java.lang.String owner,
                                                   java.lang.String iteration)
Create a new development plan and open the CCM web page on it.

If the plan already exists, then just return the opened CCM web page on the existing plan.

Parameters:
plan - The plan to create
type - The plan type
owner - The plan owner
iteration - The plan iteration
Returns:
The opened page on the created plan as a CcmWebViewPlanPage.

createNewWorkItem

public CcmWebWorkItemPage createNewWorkItem(java.lang.String summary,
                                            java.lang.String type)
Create new work item of given type with given name using the menu bar.

The created work item is filed against the current project area.

Parameters:
summary - The summary of the work item
type - The type of the work item. Only following values are valid:
  • "Defect"
  • "Task"
  • "Story"
  • "Epic"
  • "Track Build Item"
  • "Impediment"
  • "Adoption Item"
  • "Retrospective"
Returns:
The opened page on the created work item as a CcmWebWorkItemPage.

createNewWorkItem

public CcmWebWorkItemPage createNewWorkItem(java.lang.String summary,
                                            java.lang.String type,
                                            java.lang.String projectArea)
Create new work item of given type with given name using the menu bar.

Parameters:
summary - The summary of the work item
type - The type of the work item. Only following values are valid:
  • "Defect"
  • "Task"
  • "Story"
  • "Epic"
  • "Track Build Item"
  • "Impediment"
  • "Adoption Item"
  • "Retrospective"
projectArea - The project area against the work item should be filed against
Returns:
The opened page on the created work item as a CcmWebWorkItemPage.

getProjectAreaName

public java.lang.String getProjectAreaName()

getProjectAreaTitle

public java.lang.String getProjectAreaTitle()

gotoDevelopmentPlanPage

public CcmWebViewPlanPage gotoDevelopmentPlanPage(java.lang.String plan)
Go to the given development plan page through the 'Plans' menu bar.

If the test plan has been already opened before in the browser session, then it will appear in the 'Recent Plans' items list. In that case, that will be this item which will be used to jump to the test plan page.

If it's the first time the development plan page is opened in the browser session, then it will use the 'Browse - All Plans' item to jump to the plan.

Parameters:
plan - The test plan to jump to.
Returns:
The opened CCM development plan page as a CcmWebViewPlanPage.

gotoPlansPage

public CcmWebPlansPage gotoPlansPage(java.lang.String type)
Go to the given Plans page using specific browse item of 'Plans' menu bar.

Parameters:
type - The type of plans page to open. Possible values are:
  • "All"
  • "Current"
  • "My Current"
Returns:
The opened CcmWebPlansPage page.

gotoQueriesPage

public CcmWebQueriesPage gotoQueriesPage(boolean shared)
Go to the Shared Queries or My Queries page using specific browse item of 'Work Items' menu bar.

Parameters:
shared - Tells whether to go to the 'Shared Queries' or not.
Returns:
The opened CcmWebPlansPage page.

gotoReportsPage

public CcmWebReportsPage gotoReportsPage(java.lang.String type)
Go to My Reports or Shared Reports or Report Resources using 'Reports' menu bar.

Parameters:
type - The type of 'Reports' page to open
Returns:
The opened CcmWebReportsPage page.

gotoWorkItemPage

public CcmWebWorkItemPage gotoWorkItemPage(java.lang.String workItem)
Go to the given work item page through the 'Work Items' menu bar.

If the work item has been already opened before in the browser session, then it will appear in the 'Recent Work Items' items list. In that case, that will be this item which will be used to jump to the test plan page.

TODO If it's the first time the work item page is opened in the browser session, then it will use the '???' item to jump to it.

Parameters:
workItem - The work item to jump to.
Returns:
The opened CCM work item page as a CcmWebWorkItemPage.

refreshContent

public void refreshContent()
Refresh the page by clicking on the 'Refresh' button.


searchForArtifact

public java.util.List<com.ibm.team.fvt.tests.web.WebBrowserElement> searchForArtifact(java.lang.String scope,
                                                                                      java.lang.String searchText)
Search for an artifact using Quick Search.

Parameters:
searchText - The text to enter into the Quick Search text box
scope - The scope of the search (uses the scope button to limit the search by the available categories i.e 'Current Plans'). If this value is null, then the default of 'Search All Work Items' is used
Returns:
A list of 'link' elements of the found artifacts