com.ibm.team.fvt.tests.clm.pages.qm
Class QmWebProjectAreaPage

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.qm.QmWebPage
              extended by com.ibm.team.fvt.tests.clm.pages.qm.QmWebProjectAreaPage
All Implemented Interfaces:
ClmWebPageConstants
Direct Known Subclasses:
QmWebListPage, QmWebProjectDashboardPage, QmWebReportsPage, QmWebViewPage, QmWebViewReportPage

public abstract class QmWebProjectAreaPage
extends QmWebPage

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

This class provides access to the following QM web pages through the Menu bar:

Following features are available in this page:

Following internal framework API methods are also defined or specialized by this page:


Nested Class Summary
static class QmWebProjectAreaPage.QmToolbarMenuLabel
          QmWebProjectAreaPage Toolbar Menu enumeration
 
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, ETL_JOB_DATE_FORMAT, JAZZ_TEAM_SERVER_HOME_MENU_ITEM, LIFECYCLE_PROJECT_ADMIN_MENU_ITEM, LOGIN_PASSWORD_LOCATOR, LOGIN_TAGNAME_LOCATOR, LOGIN_USERID_LOCATOR, USER_NOT_AUTHORIZED_MESSAGE_ID, USER_NOT_AUTHORIZED_MESSAGE_LOCATOR
 
Constructor Summary
QmWebProjectAreaPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
           
 
Method Summary
 QmWebViewTestPlanPage createNewTestPlan(java.lang.String plan, java.lang.String template, boolean force)
          Create a new test plan and open the QM web page on it.
 java.lang.String getProjectAreaName()
           
 java.lang.String getProjectAreaTitle()
           
 QmWebReportsPage gotoReportsPage(java.lang.String type)
          Go to the Reports page using specific browse item of 'Reports' menu bar.
 QmWebViewTestCasePage gotoTestCasePage(QmWebProjectAreaPage.QmToolbarMenuLabel menu, java.lang.String testCase, java.lang.String filterText)
          Go to the given test case page through the specified menu bar.
 QmWebViewTestCasePage gotoTestCasePage(java.lang.String testCase)
          Deprecated. Use gotoTestCasePage(QmToolbarMenuLabel, String, String) instead.
 QmWebViewTestCaseResultPage gotoTestCaseResultPage(java.lang.String testCase)
          Go to the given test case result page through the 'Execution' menu bar.
 QmWebViewTestPlanPage gotoTestPlanPage(java.lang.String plan)
          Go to the given test plan page through the 'Planning' menu bar.
 QmWebViewTestPlansPage gotoTestPlans()
          Go to the test plans page through the 'Planning' menu bar.
 QmToolbarMenu openConstructionMenu()
          Open the 'Construction' menu.
 QmToolbarMenu openExecutionMenu()
          Open the 'Execution' menu.
 QmToolbarMenu openPlanningMenu()
          Open the 'Planning' menu.
 com.ibm.team.fvt.tests.web.WebMenu openReportsMenu()
          Open the 'Reports' menu.
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.qm.QmWebPage
openActiveProjectAreasPage, openAdminUIMenu
 
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, openHelpMenu, openHomeMenu, openMenu, openMenu, openToolbarMenu, openUserProfileMenu, save, waitForResourceLinkElement, waitWhileBusy
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebPage
checkHoverTitle, checkRichHover, equals, get, getBrowser, getCurrentPage, getLocation, getPage, getPage, getPageUsingBrowser, goBack, hashCode, login, login, openPage, openPage, openPageUsingBrowser, openPageUsingHoverTitle, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, refresh, richHoverOverLink, searchPageInHistory, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QmWebProjectAreaPage

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

createNewTestPlan

public QmWebViewTestPlanPage createNewTestPlan(java.lang.String plan,
                                               java.lang.String template,
                                               boolean force)
Create a new test plan and open the QM web page on it.

If the plan already exists and the creation is not forced, then just returns the opened QM web page on the existing plan.

Parameters:
plan - The plan to create
template - The template to select for the new plan
force - Tells to force the creation even if a plan with same already exists
Returns:
The opened page on the created plan as a CcmWebViewPlanPage.

getProjectAreaName

public java.lang.String getProjectAreaName()

getProjectAreaTitle

public java.lang.String getProjectAreaTitle()

gotoReportsPage

public QmWebReportsPage gotoReportsPage(java.lang.String type)
Go to the Reports page using specific browse item of 'Reports' menu bar.

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

gotoTestCasePage

public QmWebViewTestCasePage gotoTestCasePage(QmWebProjectAreaPage.QmToolbarMenuLabel menu,
                                              java.lang.String testCase,
                                              java.lang.String filterText)
Go to the given test case page through the specified menu bar.

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

If it's the first time the test case page is opened in the browser session, then it will use the 'Test Cases' item to jump to the plan.

Parameters:
menu - The menu type to select:
testCase - The test case to jump to. It may be its name or its title
filterText - If not null, filter text is used to find the test case (using 'testCase' for the filter).
Returns:
The opened QM test case page as a QmWebViewTestPlanPage.

gotoTestCasePage

@Deprecated
public QmWebViewTestCasePage gotoTestCasePage(java.lang.String testCase)
Deprecated. Use gotoTestCasePage(QmToolbarMenuLabel, String, String) instead.

Go to the given test case page through the 'Execution' menu bar.

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

If it's the first time the test case page is opened in the browser session, then it will use the 'Test Cases' item to jump to the plan.

Parameters:
testCase - The test case to jump to. It may be its name or its title (ie. includes its ID).
Returns:
The opened QM test case page as a QmWebViewTestPlanPage.

gotoTestCaseResultPage

public QmWebViewTestCaseResultPage gotoTestCaseResultPage(java.lang.String testCase)
Go to the given test case result page through the 'Execution' menu bar.

If the test case result has been already opened before in the browser session, then it will appear in the 'Recently Viewed' items list. In that case, that will be this item which will be used to jump to the test case page.
Note that if several results have been opened on the same test case, that will be the more recent which will be opened.

If it's the first time the test case result page is opened in the browser session, then it will use the 'Test Case Results' item to jump to the plan.

Parameters:
testCase - The test case to jump to.
Returns:
The opened QM test case page as a QmWebViewTestPlanPage.

gotoTestPlanPage

public QmWebViewTestPlanPage gotoTestPlanPage(java.lang.String plan)
Go to the given test plan page through the 'Planning' menu bar.

If the test plan has been already opened before in the browser session, then it will appear in the 'Recently Viewed' 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 test plan page is opened in the browser session, then it will use the 'Browse Test Plans' item to jump to the plan.

Parameters:
plan - The test plan to jump to.
Returns:
The opened QM test plan page as a QmWebViewTestPlanPage.

gotoTestPlans

public QmWebViewTestPlansPage gotoTestPlans()
Go to the test plans page through the 'Planning' menu bar.

Returns:
The opened QM test plans page as a QmWebViewTestPlansPage.

openConstructionMenu

public QmToolbarMenu openConstructionMenu()
Open the 'Construction' menu.

Returns:
The menu as a WebMenu.

openExecutionMenu

public QmToolbarMenu openExecutionMenu()
Open the 'Execution' menu.

Returns:
The menu as a WebMenu.

openPlanningMenu

public QmToolbarMenu openPlanningMenu()
Open the 'Planning' menu.

Returns:
The menu as a WebMenu.

openReportsMenu

public com.ibm.team.fvt.tests.web.WebMenu openReportsMenu()
Open the 'Reports' menu.

Returns:
The menu as a WebMenu.