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

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
                  extended by com.ibm.team.fvt.tests.clm.pages.qm.QmWebViewReportPage
All Implemented Interfaces:
ClmWebPageConstants

public class QmWebViewReportPage
extends QmWebProjectAreaPage

Manage a QM report web page.

The page address is specialized by adding at the end of the QmWebProjectAreaPage )#action=com.ibm.rqm.planning.home.actionDispatcher&subAction=viewReport&&name= + report name + &queryUUID= + report uuid + &shared= + true or false.

Following actions are accessible on 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
QmWebViewReportPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
           
 
Method Summary
 void checkReportResource(java.lang.String table, int column, java.lang.String resource)
          Check that given resource is well displayed in the given report column of the given table.
 java.lang.String getReportName()
          Return the report name.
 void run()
          Run the current report.
 boolean save()
          Save changes done in the current web page.
 void select(java.lang.String kind, java.lang.String resource)
          Select the given resource of the given kind.
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.qm.QmWebProjectAreaPage
getProjectAreaName, getProjectAreaTitle, gotoReportsPage, gotoTestCasePage, gotoTestCaseResultPage, gotoTestPlanPage
 
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, logout, openHelpMenu, openHomeMenu, openMenu, openMenu, openToolbarMenu, openUserProfileMenu, refresh, 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

QmWebViewReportPage

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

checkReportResource

public void checkReportResource(java.lang.String table,
                                int column,
                                java.lang.String resource)
Check that given resource is well displayed in the given report column of the given table.

Parameters:
table - The report table
column - The column index (starting at 1)
resource - The resource name
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - If the column is not valid or if the resource is not found in any row at the given column.

getReportName

public java.lang.String getReportName()
Return the report name.

Returns:
The report name as a String.

run

public void run()
Run the current report.

Do nothing if the report has been already run.


save

public boolean save()
Save changes done in the current web page.

Nothing happen if there's nothing to save (ie. if the button is disabled).

This method only works for CLM web pages which have a 'Save' button. Hence, if a subclass wants to use this generic method, it also has to override methods:

Note that a ScenarioFailedError is raised if one of these methods is not overridden.

Implement specific save action for the QM report page.

Do nothing if the report has been already run.

Overrides:
save in class ClmWebPage
Returns:
true if the page was saved, false if the save was not necessary.

select

public void select(java.lang.String kind,
                   java.lang.String resource)
Select the given resource of the given kind.

Do nothing if the report has been already run.

Parameters:
kind - The resource kind
resource - The resource name