|
||||||||||
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.ccm.CcmWebPage
com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebProjectAreaPage
com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebTabsPage
com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebWorkItemPage
public class CcmWebWorkItemPage
Manage the CCM work item web page.
The page address is given by CcmApplication.getPlansUrl(String, String)
.
Following actions are accessible on this page:
addComment(String)
: Add the given text as comment of current
work item.addLink(String, String)
: Add the given link type to the given
resource for the current work item.addParent(String)
: Add the work item with the given title as
parent of the current work item.getComment(int)
: Get the work item comment at the given index.getLastComment()
: Get the last work item comment.getLinkElement(String, String)
: Get the element of the given
resource for the given link.getStatus()
: Get the work item status.getTitle()
: Get the work item page title.getWorkItemID()
: Return the work item number.getWorkItemReference()
: Return the reference of the work item
which is the concatenation of its number and its summary.getWorkItemSummary()
: Return the work item summary.getWorkItemTitle()
: Return the work item title.gotoAffectsRequirementPageUsingHover(String)
: Goto the given
requirement page using the hover of the CcmWebTabsPage.AFFECTS_REQUIREMENT
link displayed in the current page 'Links' section.gotoDefectPageUsingHover(String)
: Goto the given work item
page using the hover of the CcmWebTabsPage.AFFECTED_BY_DEFECT
link displayed in
the current page 'Links' section.gotoImplementsRequirementPageUsingHover(String)
: Goto the
given requirement page using the hover of the CcmWebTabsPage.IMPLEMENTS_REQUIREMENT
link displayed in the current page 'Links' section.gotoPlanItemPageUsingHover(String)
: Goto the given work item
page using the hover of the CcmWebTabsPage.AFFECTS_PLAN_ITEM
link displayed in
the current page 'Links' section.gotoRelatedTestCasePageUsingHover(String)
: Goto the given test
case page using the hover of the CcmWebTabsPage.RELATED_TEST_CASE
link displayed
in the current page 'Links' section.gotoTestCasePageUsingQuickInformation(String)
: Goto the test
case page using its number displayed in the quick information.gotoTestedByTestCasePageUsingHover(String)
: Goto the given
test case page using the hover of the CcmWebTabsPage.TESTED_BY_TEST_CASE
link displayed in the current page 'Links' section.gotoTracksRequirementPageUsingHover(String)
: Goto the given
requirement page using the hover of the CcmWebTabsPage.TRACKS_REQUIREMENT
link
displayed in the current page 'Links' section.gotoWorkItemPageUsingQuickInformation(String)
: Goto the work
item page using its number displayed in the quick information.isLinkedTo(String, String)
: Returns whether the current work item
is linked to the given resource with the given link type.save()
: Save changes done in the current work item.setOwner(User)
: Set the 'Owned by' drop-down list selection to
the given user name.setPlannedFor(String)
: Set the 'Planned For' drop-down list
selection to the given release.setProject(String)
: Set the 'Filed Against' drop-down list selection
to the given project.setStatus(String)
: Set the 'Status' selection with the given
status.setSummary(String)
: Set the 'Summary' input field with the given
text.setBusinessValue(String)
: Set the 'Business Value' selection with the given
value.Following functionalities are also defined or specialized by this page:
getExpectedTitle()
: The expected title for the page.getSaveButtonXpath()
: Return the xpath for the save button.getTitle()
: Return the current page title.waitForSavingEnd()
: Wait for the end of the saving operation.waitForTitle(boolean)
: Wait for the title to be displayed in the
current CLM page.
Field Summary |
---|
Fields inherited from class com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebTabsPage |
---|
AFFECTED_BY_DEFECT, AFFECTS_PLAN_ITEM, AFFECTS_REQUIREMENT, ELABORATES_BY_ARCHITECTURE_ELEMENT, IMPLEMENTS_REQUIREMENT, RELATED_TEST_CASE, TESTED_BY_TEST_CASE, TRACKS_REQUIREMENT |
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 | |
---|---|
CcmWebWorkItemPage(java.lang.String url,
ClmConfig config,
com.ibm.team.fvt.tests.config.User user)
|
|
CcmWebWorkItemPage(java.lang.String url,
ClmConfig config,
com.ibm.team.fvt.tests.config.User user,
java.lang.String... data)
|
Method Summary | |
---|---|
void |
addComment(java.lang.String comment)
Add the given text as comment of current work item. |
void |
addLink(java.lang.String resource,
java.lang.String linkType)
Deprecated. Use either addRequirementLink(String, String, String)
when adding a requirement link or addTestCaseLink(String, String)
when adding a test case link |
com.ibm.team.fvt.tests.web.WebBrowserElement |
addParent(java.lang.String workItemTitle)
Add the work item with the given title as parent of the current work item. |
void |
addRequirementLink(java.lang.String requirement,
java.lang.String linkType,
java.lang.String projectAreaName)
Add a link to the given requirement for the current work item. |
void |
addTestCaseLink(java.lang.String testCase,
java.lang.String linkType)
Add a link to the given test case for the current work item. |
java.lang.String |
getComment(int index)
Get the work item comment at the given index. |
java.lang.String |
getLastComment()
Get the last work item comment. |
com.ibm.team.fvt.tests.web.WebBrowserElement |
getLinkElement(java.lang.String resource,
java.lang.String linkType)
Get the element of the given resource for the given link. |
java.lang.String |
getStatus()
Get the work item status. |
java.lang.String |
getTitle()
Return the title of the page. |
java.lang.String |
getWorkItemID()
Return the work item number. |
java.lang.String |
getWorkItemReference()
Return the reference of the work item which is the concatenation of its number and its summary. |
java.lang.String |
getWorkItemSummary()
Return the work item summary. |
java.lang.String |
getWorkItemTitle()
Return the title of the work item which is the concatenation of its number and its summary. |
RmWebShowRequirementPage |
gotoAffectsRequirementPageUsingHover(java.lang.String requirement)
Goto the given requirement page using the hover of the CcmWebTabsPage.AFFECTS_REQUIREMENT
link displayed in the current page 'Links' section. |
CcmWebWorkItemPage |
gotoDefectPageUsingHover(java.lang.String item)
Goto the given work item page using the hover of the CcmWebTabsPage.AFFECTED_BY_DEFECT
link displayed in the current page 'Links' section. |
DmWebDocumentPage |
gotoElaboratesDocumentUsingHover(java.lang.String documentTitle)
Goto the given DM document page using the hover of the CcmWebTabsPage.ELABORATES_BY_ARCHITECTURE_ELEMENT
link displayed in the current page 'Links' section. |
RmWebShowRequirementPage |
gotoImplementsRequirementPageUsingHover(java.lang.String requirement)
Goto the given requirement page using the hover of the CcmWebTabsPage.IMPLEMENTS_REQUIREMENT
link displayed in the current page 'Links' section. |
CcmWebWorkItemPage |
gotoPlanItemPageUsingHover(java.lang.String item)
Goto the given work item page using the hover of the CcmWebTabsPage.AFFECTS_PLAN_ITEM
link displayed in the current page 'Links' section. |
QmWebViewTestCasePage |
gotoRelatedTestCasePageUsingHover(java.lang.String testCase)
Goto the given test case page using the hover of the CcmWebTabsPage.RELATED_TEST_CASE
link displayed in the current page 'Links' section. |
QmWebViewTestCasePage |
gotoTestCasePageUsingQuickInformation(java.lang.String linkInfo)
Goto the test case page using its number displayed in the quick information. |
QmWebViewTestCasePage |
gotoTestedByTestCasePageUsingHover(java.lang.String testCase)
Goto the given test case page using the hover of the CcmWebTabsPage.TESTED_BY_TEST_CASE
link displayed in the current page 'Links' section. |
RmWebShowRequirementPage |
gotoTracksRequirementPageUsingHover(java.lang.String requirement)
Goto the given requirement page using the hover of the CcmWebTabsPage.TRACKS_REQUIREMENT
link displayed in the current page 'Links' section. |
CcmWebWorkItemPage |
gotoWorkItemPageUsingQuickInformation(java.lang.String linkInfo)
Goto the work item page using its number displayed in the quick information. |
boolean |
isLinkedTo(java.lang.String resource,
java.lang.String linkType)
Returns whether the current work item is linked to the given resource with the given link type. |
boolean |
save()
Save changes done in the current web page. |
void |
setBusinessValue(java.lang.String value)
Set the 'Business Value' drop-down with list selection to the given project. |
void |
setOwner(com.ibm.team.fvt.tests.config.User user)
Set the 'Owned by' drop-down list selection to the given user name. |
void |
setPlannedFor(java.lang.String release)
Set the 'Planned For' drop-down list selection to the given release. |
void |
setProject(java.lang.String project)
Set the 'Filed Against' drop-down list selection to the given project. |
void |
setStatus(java.lang.String status)
Set the 'Status' selection with the given status. |
void |
setSummary(java.lang.String summary)
Set the 'Summary' input field with the given text. |
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebTabsPage |
---|
selectTab |
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebProjectAreaPage |
---|
createNewDevelopmentPlan, createNewWorkItem, createNewWorkItem, getProjectAreaName, getProjectAreaTitle, gotoDevelopmentPlanPage, gotoPlansPage, gotoQueriesPage, gotoReportsPage, gotoWorkItemPage, refreshContent, searchForArtifact |
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, 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 CcmWebWorkItemPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user)
public CcmWebWorkItemPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
Method Detail |
---|
public void addComment(java.lang.String comment)
comment
- The text to add as comment@Deprecated public void addLink(java.lang.String resource, java.lang.String linkType)
addRequirementLink(String, String, String)
when adding a requirement link or addTestCaseLink(String, String)
when adding a test case link
The added link is checked by hovering and the work item is saved.
resource
- The resource namelinkType
- The link typepublic com.ibm.team.fvt.tests.web.WebBrowserElement addParent(java.lang.String workItemTitle)
Note that current item is saved after having add the parent link.
workItemTitle
- The title of the work item to be added as parentpublic void addRequirementLink(java.lang.String requirement, java.lang.String linkType, java.lang.String projectAreaName)
The added link is checked by hovering and the work item is saved.
requirement
- The requirement namelinkType
- The link typeprojectAreaName
- The RM project area name belonging the requirementpublic void addTestCaseLink(java.lang.String testCase, java.lang.String linkType)
The added link is checked by hovering and the work item is saved.
testCase
- The test case namelinkType
- The link typepublic java.lang.String getComment(int index)
index
- The comment index
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
- if the given index is out of scopepublic java.lang.String getLastComment()
null
if there's no comment.
TODO Need improvementpublic com.ibm.team.fvt.tests.web.WebBrowserElement getLinkElement(java.lang.String resource, java.lang.String linkType)
If the given resource is null
, then it will return the first element
found for the given link type.
resource
- The resource name.linkType
- The type of the link
WebBrowserElement
or null
if the expected link does not exist.public java.lang.String getStatus()
String
.public java.lang.String getTitle()
As the title element is an input field, it's value is got from the "value" attribute.
getTitle
in class ClmWebPage
String
.public java.lang.String getWorkItemID()
String
.public java.lang.String getWorkItemReference()
String
.public java.lang.String getWorkItemSummary()
String
.public java.lang.String getWorkItemTitle()
String
.public RmWebShowRequirementPage gotoAffectsRequirementPageUsingHover(java.lang.String requirement)
CcmWebTabsPage.AFFECTS_REQUIREMENT
link displayed in the current page 'Links' section.
If the given requirement is null
, then it will return the first element
found for the CcmWebTabsPage.AFFECTS_REQUIREMENT
link.
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
requirement
- The requirement name to find the link in the current page.
RmWebShowRequirementPage
.public CcmWebWorkItemPage gotoDefectPageUsingHover(java.lang.String item)
CcmWebTabsPage.AFFECTED_BY_DEFECT
link displayed in the current page 'Links' section.
If the given item is null
, then it will return the first element
found for the CcmWebTabsPage.AFFECTED_BY_DEFECT
link.
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
item
- The work item name to find the link in the current page.
CcmWebWorkItemPage
.public DmWebDocumentPage gotoElaboratesDocumentUsingHover(java.lang.String documentTitle)
CcmWebTabsPage.ELABORATES_BY_ARCHITECTURE_ELEMENT
link displayed in the current page 'Links' section.
If the given item is null
, then it will return the first element
found for the CcmWebTabsPage.ELABORATES_BY_ARCHITECTURE_ELEMENT
link.
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
documentTitle
- The design document title to find the link in the current page.
DmWebDocumentPage
.public RmWebShowRequirementPage gotoImplementsRequirementPageUsingHover(java.lang.String requirement)
CcmWebTabsPage.IMPLEMENTS_REQUIREMENT
link displayed in the current page 'Links' section.
If the given requirement is null
, then it will return the first element
found for the CcmWebTabsPage.IMPLEMENTS_REQUIREMENT
link.
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
requirement
- The requirement name to find the link in the current page.
RmWebShowRequirementPage
.public CcmWebWorkItemPage gotoPlanItemPageUsingHover(java.lang.String item)
CcmWebTabsPage.AFFECTS_PLAN_ITEM
link displayed in the current page 'Links' section.
If the given item is null
, then it will return the first element
found for the CcmWebTabsPage.AFFECTS_PLAN_ITEM
link.
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
item
- The work item name to find the link in the current page.
CcmWebWorkItemPage
.public QmWebViewTestCasePage gotoRelatedTestCasePageUsingHover(java.lang.String testCase)
CcmWebTabsPage.RELATED_TEST_CASE
link displayed in the current page 'Links' section.
If the given test case is null
, then it will return the first element
found for the CcmWebTabsPage.RELATED_TEST_CASE
link.
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
testCase
- The test case name to find the link in the current page.
QmWebViewTestCasePage
.public QmWebViewTestCasePage gotoTestCasePageUsingQuickInformation(java.lang.String linkInfo)
linkInfo
- The piece of information to find the link in the quick information
block.
QmWebViewTestCasePage
.public QmWebViewTestCasePage gotoTestedByTestCasePageUsingHover(java.lang.String testCase)
CcmWebTabsPage.TESTED_BY_TEST_CASE
link displayed in the current page 'Links' section.
If the given test case is null
, then it will return the first element
found for the CcmWebTabsPage.TESTED_BY_TEST_CASE
link.
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
testCase
- The test case name to find the link in the current page.
QmWebViewTestCasePage
.public RmWebShowRequirementPage gotoTracksRequirementPageUsingHover(java.lang.String requirement)
CcmWebTabsPage.TRACKS_REQUIREMENT
link displayed in the current page 'Links' section.
If the given requirement is null
, then it will return the first element
found for the CcmWebTabsPage.TRACKS_REQUIREMENT
link.
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
requirement
- The requirement name to find the link in the current page.
RmWebShowRequirementPage
.public CcmWebWorkItemPage gotoWorkItemPageUsingQuickInformation(java.lang.String linkInfo)
linkInfo
- The piece of information to find the link in the quick information
block.
CcmWebWorkItemPage
.public boolean isLinkedTo(java.lang.String resource, java.lang.String linkType)
resource
- The resource namelinkType
- The type of link
true
if a link element has been found with the given
type, false
otherwise.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.
Update information after having saved the work item.
save
in class ClmWebPage
true
if the page was saved, false
if
the save was not necessary.public void setBusinessValue(java.lang.String value)
Valid values are: "Unassigned", "$", "$$", "$$$", "$$$$", "$$$$$"
value
- The String
value to select in the drop-down list
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
- If an invalid value is given as parameter.public void setOwner(com.ibm.team.fvt.tests.config.User user)
user
- The user to select in the drop-down listpublic void setPlannedFor(java.lang.String release)
release
- The release to select in the drop-down listpublic void setProject(java.lang.String project)
project
- The project to select in the drop-down listpublic void setStatus(java.lang.String status)
status
- The text to set the status with
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
- If the status is not validpublic void setSummary(java.lang.String summary)
summary
- The text to put in the input field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |