|
||||||||||
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.rm.RmWebPage
com.ibm.team.fvt.tests.clm.pages.rm.RmWebProjectAreaPage
com.ibm.team.fvt.tests.clm.pages.rm.RmWebListPage
public abstract class RmWebListPage
Abstract class to manage common actions to any RM application web page which is displaying artifacts list.
Following actions are accessible in this page:
addColumns(String[])
: Add columns to display in collection items table.applyTagFilter(String, String, String...)
: Apply the given tags to filter the artifacts to display.checkResourceLinkElements(String, String[], String[])
: Check link
elements for the given artifact.clearAllFilters()
: Clears all the filters.clickOnCollection(String)
: Click on the given collection link.clickOnRequirement(String)
: Click on the given requir'ment link.exists(String)
: Check whether the given artifact exists or not.exists(String, String)
: Check whether the given artifact exists at
the given column or not.getResourceLinkElement(String, String)
: Return the link element
for the given artifact at the given column.selectTagsForArtifact(String, String...)
: Selects the list of existing
tags to add to the given artifact by clicking the 'Select Tags for Artifact'
menu option from the popup-menu.Following functionalities are also defined or specialized by this page:
applyAttributeFilter(RmAttributeFilterCriteria)
: Apply the
given criteria to the attribute filterapplyViewFilter(String)
: Apply the given view filtercheckArtifact(String)
: Check that the given artifact belongs to
the artifacts list.clearFilter(String)
: Clears the given filter by section.deleteTag(String)
: Deletes the given tag by selecting the
'Delete' menu option from the popup-,menu. doesTagExist(String)
: Check whether the given tag exists or not.editTag(String, String, String)
: Edit the tag with the given information.getItemsNumberFromTabHeader(String, String)
: Get the number of
items displayed in a given tab (for example, within the "Recent Comments" sidebar). getRecentSectionElement(boolean, String, String)
: Returns the
link element found for the given artifact in the given tab of either the 'Recent Artifacts'
or 'Recent Comments' section.getTabHeaderElement(String, String)
: Returns the specified
tab header for the "Recent Comments" section, that is, one of the next headers:
"Today", "Yesterday" or "Past Week"getViewFilter(String)
: Get the specified view filter.isArtifactRowLocked(String)
: Checks if artifact row is locked.isCollection(String, WebBrowserElement)
}: Returns whether or
not the artifact in the given artifact row is a collection or not.lockArtifact(String)
: Locks the given artifact from grid.refreshList()
: Refresh the artifacts list.saveView(String, String)
: Saves the current filter as a view by
clicking the 'Save View' icon button.selectAttributeFilterLimitByLifecycleStatus(String, String)
: Select
the 'Limit by lifecycle status' filter for the given kind of resource with the given
status.selectFolder(String)
: Select the given folder in the 'Filter by Folder'selectProjectFilter()
: Select the current project in 'Filter by Folder'selectFilterByTag()
: Select the 'Filter by Tag' filter section.selectFilterSection(String)
: Selects and expands the given filter section.selectViewsFilter()
: Select the 'Views' filter section.setPageSize(String)
: Sets the page size, that is, the number of
artifacts to display on a page.unlockArtifact(String)
: Unlocks the given artifact from grid.
Field Summary | |
---|---|
static java.lang.String |
PAST_WEEK
|
static java.lang.String |
TODAY
Time-specific subsections within the 'Recent Artifacts' and 'Recent Comments' section |
static java.lang.String |
YESTERDAY
|
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 | |
---|---|
RmWebListPage(java.lang.String url,
ClmConfig config,
com.ibm.team.fvt.tests.config.User user,
java.lang.String... data)
|
Method Summary | |
---|---|
void |
addColumns(java.lang.String[] columns)
Add columns to display in collection items table. |
void |
checkResourceLinkElements(java.lang.String artifact,
java.lang.String[] columns,
java.lang.String[] resources)
Deprecated. Use checkResourceLinkElements(String, String[], String[], String[]) instead.
Using this method will throw a ScenarioFailedError error while running your scenario. |
void |
checkResourceLinkElements(java.lang.String artifact,
java.lang.String[] columns,
java.lang.String[] resources,
java.lang.String[] projectAreas)
Check link elements for the given artifact. |
void |
clearAllFilters()
Clears all the filters. |
RmWebShowCollectionPage |
clickOnCollection(java.lang.String collection)
Click on the given collection link. |
RmWebShowModulePage |
clickOnModule(java.lang.String module)
Click on the given module link. |
RmWebShowRequirementPage |
clickOnRequirement(java.lang.String requirement)
Click on the given requirement link. |
void |
editArtifactColumn(java.lang.String artifactName,
java.lang.String newValue,
java.lang.String column)
Changes the provided columns value with the provided value |
boolean |
exists(java.lang.String artifact)
Check whether the given artifact exists or not. |
boolean |
exists(java.lang.String artifact,
java.lang.String column)
Check whether the given artifact exists at the given column or not. |
int |
getArtifactsDisplayedCount()
Get the number of artifacts displayed on the page. |
int |
getArtifactsTotalCount()
Get the total number of artifacts selected by the filters in effect. |
java.lang.String |
getResourceID(java.lang.String artifact)
Return the ID of the artifact with the given name. |
void |
lockArtifact(java.lang.String artifact)
Locks the specified artifact by selecting the 'Manually Lock Artifact for Editing' menu option from the popup-menu. |
void |
refreshList()
Refresh the artifacts list. |
void |
unlockArtifact(java.lang.String artifact)
Unlocks the specified artifact by selecting the 'Unlock Artifact' menu option from the popup-menu. |
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.rm.RmWebProjectAreaPage |
---|
getProjectAreaName, getProjectAreaTitle, gotoArtifactsPage, gotoCollectionPage, gotoCollectionsPage, gotoModulePage, gotoModulesPage, gotoRequirementPage, searchForArtifact |
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.rm.RmWebPage |
---|
getAdminUIPopupMenu, getAllProjectAreasPage, getHelpPopupMenu, getSidebarSectionItemsCount, getUserPopupMenu |
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 |
---|
public static final java.lang.String TODAY
public static final java.lang.String YESTERDAY
public static final java.lang.String PAST_WEEK
Constructor Detail |
---|
public RmWebListPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
Method Detail |
---|
public void addColumns(java.lang.String[] columns)
columns
- @Deprecated public void checkResourceLinkElements(java.lang.String artifact, java.lang.String[] columns, java.lang.String[] resources)
checkResourceLinkElements(String, String[], String[], String[])
instead.
Using this method will throw a ScenarioFailedError
error while running your scenario.
The links are expected to be found in the given column names and pointing to the given resources.
If one resources slot is null
, then the corresponding column
is not expected to have any link.
artifact
- The artifact namecolumns
- The column names.resources
- The resources expected to be found in given columns.
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
- If one link is missing.public void checkResourceLinkElements(java.lang.String artifact, java.lang.String[] columns, java.lang.String[] resources, java.lang.String[] projectAreas)
The links are expected to be found in the given column names and pointing to the given resources.
If one resources slot is null
, then the corresponding column
is not expected to have any link.
artifact
- The artifact namecolumns
- The column names.resources
- The resources expected to be found in given columns.projectAreas
- The project areas of the given resources
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
- If one link is missing.public void clearAllFilters()
public RmWebShowCollectionPage clickOnCollection(java.lang.String collection)
collection
- The name of the collection to click onpublic RmWebShowModulePage clickOnModule(java.lang.String module)
module
- The name of the module to click onpublic RmWebShowRequirementPage clickOnRequirement(java.lang.String requirement)
requirement
- The name of the requirement to click onpublic void editArtifactColumn(java.lang.String artifactName, java.lang.String newValue, java.lang.String column)
artifactName
- the artifact being targetednewValue
- the value to be enteredcolumn
- the column being editedpublic boolean exists(java.lang.String artifact)
artifact
- The artifact name
true
if the artifact is in the artifacts list, false
otherwise.public boolean exists(java.lang.String artifact, java.lang.String column)
artifact
- The artifact namecolumn
- The column name
true
if the artifact is in the artifacts list at the
expected column, false
otherwise.public int getArtifactsDisplayedCount()
This information is shown in the bottom of the page.
public int getArtifactsTotalCount()
This information is shown at the bottom of the page.
public java.lang.String getResourceID(java.lang.String artifact)
artifact
- The artifact name
public void lockArtifact(java.lang.String artifact)
artifact
- The artifact to lock, identified by its name.public void refreshList()
Wait for the "Loading Artifacts..." status message to be displayed and vanished before returning, hence we're sure that all artifacts are loaded
Note that it may happen that either the status message display is too quick
to be captured or even it does not appear at all (guessing that it depends on
javascript speed execution...). In this case, it returns after WebPage.shortTimeout()
seconds.
public void unlockArtifact(java.lang.String artifact)
artifact
- The artifact to unlock, identified by its name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |