|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.web.WebPage
com.ibm.team.fvt.tests.clm.pages.ClmWebPage
com.ibm.team.fvt.tests.clm.pages.qm.QmWebPage
com.ibm.team.fvt.tests.clm.pages.qm.QmWebProjectAreaPage
com.ibm.team.fvt.tests.clm.pages.qm.QmWebViewReportPage
public class QmWebViewReportPage
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:
checkReportResource(String, int, String)
: Check that given
resource is well displayed in the given report column of the given table.getReportName()
: Return the query name.run()
: Run the current report.save()
: Save changes done in the current web page.select(String, String)
: Select the given resource of the given
kind.Following functionalities are also defined or specialized by this page:
getExpectedTitle()
: The expected title for the page.waitForTitle(boolean)
: Wait for the title to be displayed in the
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 |
---|
public QmWebViewReportPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
Method Detail |
---|
public void checkReportResource(java.lang.String table, int column, java.lang.String resource)
table
- The report tablecolumn
- The column index (starting at 1)resource
- The resource name
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.public java.lang.String getReportName()
String
.public void run()
Do nothing if the report has been already run.
public boolean save()
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:
ClmWebPage.getSaveButtonXpath()
: to specify how to search for the 'Save'
buttonClmWebPage.waitForSavingEnd()
: to specify how to wait for the end of the
saving operation.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.
save
in class ClmWebPage
true
if the page was saved, false
if
the save was not necessary.public void select(java.lang.String kind, java.lang.String resource)
Do nothing if the report has been already run.
kind
- The resource kindresource
- The resource name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |