|
||||||||||
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
com.ibm.team.fvt.tests.clm.pages.rm.RmWebShowArtifactPage
public abstract class RmWebShowArtifactPage
Abstract class to manage RM page showing an artifact.
Following actions are accessible in this page:
addComment(String)
: Add a comment to the artifact.addLinkToArtifact(String, String, boolean)
: Safely adds a link to
an existing artifact or to a newly-created artifact.addLinkToArtifact(String, String, boolean, boolean)
: Adds a link
to an existing artifact or to a newly-created artifact.canBeModified()
: Determines if current artifact can be edited.createReview(String, String, boolean)
: Create a review through the Create Review button.deleteComment(String)
: Deletes a comment from the artifact.getArtifactID()
: Return the artifact ID.getArtifactName()
: Return the artifact name.getLinksItemElement(String, String)
: Return the 'Links' section
menu item matching the given artifact name for the current artifact.getTags()
: Return the list of the tags for the currently viewed artifact.getTitle()
: Return the artifact title.lockArtifact()
: Locks current artifact.openHistory()
: Opens the history page for the current artifact.overrideArtifactlock()
: Attempts to override current lock.resolveComment(String)
: Resolves a comment on the artifact.selectTags(String...)
:Selects the given tags to add
to the artifact managed by this page by clicking the
'Select Tags' icon button which is above the toolbar.unlockArtifact()
: Unlocks current artifact.Following functionalities are also defined or specialized by this page:
getExpectedTitle()
: The expected title for the page.getLinksItemElement(String, String, boolean)
: Return the 'Links'
section menu item matching the given artifact name for the current artifact.RmWebPage.getSidebarHeaderElement(String)
: Returns the header element
corresponding to the given sidebar section name.getLinkTypeItemElement(WebBrowserElement, String, String)
:
Get the item for the given text in the given link type of the given section
element.waitForTitle(boolean)
: Wait for the title to be displayed in the
current CLM page.
Field Summary | |
---|---|
static java.lang.String |
IMPLEMENTED_BY
|
static java.lang.String |
TRACKED_BY
|
static java.lang.String |
VALIDATED_BY
|
Fields inherited from class com.ibm.team.fvt.tests.clm.pages.rm.RmWebListPage |
---|
PAST_WEEK, TODAY, 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 | |
---|---|
RmWebShowArtifactPage(java.lang.String url,
ClmConfig config,
com.ibm.team.fvt.tests.config.User user,
java.lang.String... data)
Abstract class to manage common actions to any RM application web page which is displaying project area information. |
Method Summary | |
---|---|
boolean |
addComment(java.lang.String subject)
Adds a comment to the artifact with the given subject, unless it already exists. |
boolean |
addComment(java.lang.String subject,
boolean force)
Adds a comment to the artifact with the given subject. |
com.ibm.team.fvt.tests.web.WebBrowserElement |
addLinkToArtifact(java.lang.String artifactName,
java.lang.String linkType,
boolean create)
Adds a link to an existing RM artifact or to a newly-created RM artifact. |
com.ibm.team.fvt.tests.web.WebBrowserElement |
addLinkToArtifact(java.lang.String artifactName,
java.lang.String linkType,
boolean create,
boolean safe)
Adds a link to an existing RM artifact or to a newly-created RM artifact. |
boolean |
canBeModified()
Determines if artifact is able to be edited by current user |
void |
clickOnDoneButton()
Clicks on the Done button |
RmWebReviewPage |
createReview(java.lang.String reviewName,
java.lang.String description,
boolean isFormal)
Create a review for this collection |
void |
delete()
Deletes the artifact managed by this page by clicking the 'Delete' button from the toolbar. |
boolean |
deleteComment(java.lang.String subject)
Deletes all comments in the artifact that have the given subject |
java.lang.String |
getArtifactID()
Return the artifact ID. |
java.lang.String |
getArtifactName()
Return the artifact name. |
com.ibm.team.fvt.tests.web.WebBrowserElement |
getLinksItemElement(java.lang.String artifact,
java.lang.String linkType)
Return the 'Links' section menu item matching the given artifact name for the current artifact. |
java.util.List<java.lang.String> |
getTags()
Return the list of the tags for the currently viewed artifact. |
java.lang.String |
getTitle()
Return the title of the artifact which is the concatenation of its number and its name. |
boolean |
isArtifactLocked()
Determines if artifact is currently locked |
void |
lockArtifact()
Clicks the lock button for the current artifact |
RmWebShowRequirementHistoryPage |
openHistory()
Opens the history for this artifact by clicking the 'Open History' button from the toolbar. |
boolean |
overrideArtifactlock()
Attempts overrides lock for current artifact |
void |
resolveComment(java.lang.String subject)
Resolves all comments in the artifact that have the given subject |
void |
selectTags(java.lang.String... tags)
Selects the given tags to add to the artifact managed by this page by clicking the 'Select Tags' icon button which is above the toolbar. |
void |
unlockArtifact()
Clicks the unlock button for the current artifact |
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.rm.RmWebListPage |
---|
addColumns, checkResourceLinkElements, checkResourceLinkElements, clearAllFilters, clickOnCollection, clickOnModule, clickOnRequirement, editArtifactColumn, exists, exists, getArtifactsDisplayedCount, getArtifactsTotalCount, getResourceID, lockArtifact, refreshList, unlockArtifact |
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, 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 IMPLEMENTED_BY
public static final java.lang.String TRACKED_BY
public static final java.lang.String VALIDATED_BY
Constructor Detail |
---|
public RmWebShowArtifactPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
Following functionalities are also defined or specialized by this page:
getArtifactName()
: Return the current artifact name.getTitle()
: Return the current artifact title.getExpectedTitle()
: The expected title for the page.waitForTitle(boolean)
: Wait for the title to be displayed in the
Method Detail |
---|
public boolean addComment(java.lang.String subject)
This is equivalent to addComment(String, false)
.
subject
- The comment subject
true
if a comment was added, false
otherwisepublic boolean addComment(java.lang.String subject, boolean force)
In case there's already one or several comments with the same subject, the
comment is added only if the given force parameter is set to true
.
subject
- The comment subjectforce
- Tells whether the comment should still be added if it already exists
true
if a comment was added, false
otherwisepublic com.ibm.team.fvt.tests.web.WebBrowserElement addLinkToArtifact(java.lang.String artifactName, java.lang.String linkType, boolean create) throws ClmServerMessageError
Note that the link is only between RM artifacts. It is not intended to be used to link to a non-RM artifact.
Also, the artifact is searched by name only. Searching using the different filter types is not currently supported.
Note that it's a safe operation, when the link already exists, nothing is done and no error is thrown.
artifactName
- The name of the artifact to be linked.linkType
- The name of the link type for the new linkcreate
- Boolean indicating whether or not to create a new artifact to link.
WebBrowserElement
.
ClmServerMessageError
- In case there's an error while adding the link,
typically when the link already exists.public com.ibm.team.fvt.tests.web.WebBrowserElement addLinkToArtifact(java.lang.String artifactName, java.lang.String linkType, boolean create, boolean safe) throws ClmServerMessageError
Note that the link is only between RM artifacts. It is not intended to be used to link to a non-RM artifact.
Also, the artifact is searched by name only. Searching using the different filter types is not currently supported.
artifactName
- The name of the artifact to be linked.linkType
- The name of the link type for the new linkcreate
- Boolean indicating whether or not to create a new artifact to link.safe
- Tells whether the creation/addition should be done safely
or not (ie. tolerate that the link already exists instead of throwing an error)
WebBrowserElement
.
ClmServerMessageError
- In case there's an error while adding the link,
typically when the link already exists.public boolean canBeModified()
public void clickOnDoneButton()
Clicks on the Done button
public RmWebReviewPage createReview(java.lang.String reviewName, java.lang.String description, boolean isFormal)
reviewName
- The name of the reviewdescription
- The description of the reviewisFormal
- A formal review if "true", else an informal review
public void delete()
public boolean deleteComment(java.lang.String subject) throws com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
subject
- The comment subject
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
- if a comment could not be deletedpublic java.lang.String getArtifactID()
String
.public java.lang.String getArtifactName()
String
.public com.ibm.team.fvt.tests.web.WebBrowserElement getLinksItemElement(java.lang.String artifact, java.lang.String linkType)
artifact
- The name of the artifact that the collection is supposed to
be linked tolinkType
- The type of link for the searched item. If null
then the search will occur in all section items.
null
if the collection
does not have such a linkpublic java.util.List<java.lang.String> getTags()
List
of String
. If
no tags have been associated, then an empty list is returned.public java.lang.String getTitle()
getTitle
in class ClmWebPage
String
.public boolean isArtifactLocked()
public void lockArtifact()
Artifact must be in appropriate unlocked state before attempting to lock
public RmWebShowRequirementHistoryPage openHistory()
public boolean overrideArtifactlock()
public void resolveComment(java.lang.String subject)
subject
- The comment subject
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
- if no comment was found with the given subjectpublic void selectTags(java.lang.String... tags)
tags
- List of Strings representing the tags to selectpublic void unlockArtifact()
Artifact must be in appropriate locked state before attempting to unlock
Note: This method will only work if current user holds lock. overrideArtifactlock() should be used to override other users locks.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |