|
||||||||||
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.CcmWebViewPlanPage
public class CcmWebViewPlanPage
Manage the CCM Plans web page.
The page address is given by CcmApplication.getPlansUrl(String, String)
.
Following features are accessible on this page:
addColumn(String)
: Add the given column to the current test plan.addLinkTestedByNewTestCase(String, String, String, String, ClmUser, String)
:
Add a new test case link to an itemaddLinkTestedByTestCase(String, String)
Add existing test case link to an itemcheckChildren(String, String...)
: Check that the given work item
as the given children displayed on the current plan page.checkCollectionRichHover(String, Class, String...)
: Check the rich
hover title of the given collection.checkPlannedItemRichHover(String, String, Class, String...)
:
Check the rich hover title for the given resource displayed in the given column.createChildWorkItem(String, String, String)
: Create a child work item for the item using the Actions menucreateStoriesForCollection(String)
: Create stories from the given
collection requirements.createChildWorkItem(String, String, String)
: Create a child work item for the item.gotoCollectionPageUsingHover(String)
: Goto the given RM
collection page using the hover of the link displayed in the current page.gotoTestPlanPageUsingHover(String)
: Goto the given QM test
plan page using the hover of the link displayed in the current page.gotoWorkItemPageUsingHover(String)
: Goto the given work item
page using the hover of the link displayed in the current tab.moveItem(String, String, boolean, boolean)
: Move the given item
above or below a destination item.CcmWebTabsPage.selectTab(String)
: Select the given tab in the current page.setViewAs(String)
: Set the 'View As' type from drop-down list selection.Following methods are also defined or specialized by this page:
clickOnItemRow(String)
: Click on the row of the given item.getExpectedTitle()
: The expected title for the page.getLinkTypeElement(String)
: Return the element for the link type.getPlanName()
: Return the current selected plan name.getSaveButtonXpath()
: Return the xpath for the plan save button
WebPage.getUrl()
: Return the URL of the page loaded in the browser.selectItemLine(String, int)
: Select/Unselect/Toggle the line of
the given item.waitForLinkElement(String, String)
: Wait the element of the given
resource for the given link.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 | |
---|---|
CcmWebViewPlanPage(java.lang.String url,
ClmConfig config,
com.ibm.team.fvt.tests.config.User user,
java.lang.String... data)
|
Method Summary | ||
---|---|---|
void |
addColumn(java.lang.String column)
Add the given column to the current test plan. |
|
void |
addLinkTestedByNewTestCase(java.lang.String item,
java.lang.String name,
java.lang.String description,
java.lang.String weight,
ClmUser owner,
java.lang.String testPhase)
Add a new 'Tested By Test Case' link to the item |
|
void |
addLinkTestedByTestCase(java.lang.String item,
java.lang.String testCase)
Add an existing 'Tested By Test Case' link to the item |
|
void |
assignToOwner(java.lang.String item,
ClmUser owner)
Assign the given user as owner of the given item. |
|
void |
checkChildren(java.lang.String workItem,
java.lang.String... children)
Check that the given work item as the given children displayed on the current plan page. |
|
|
checkCollectionRichHover(java.lang.String resource,
java.lang.Class<P> hoverClass,
java.lang.String... additionalData)
Check the rich hover title of the given collection. |
|
|
checkPlannedItemRichHover(java.lang.String resource,
java.lang.String column,
java.lang.Class<RH> hoverClass,
java.lang.String... additionalData)
Check the rich hover title for the given resource displayed in the given column. |
|
void |
createChildWorkItem(java.lang.String item,
java.lang.String type,
java.lang.String summary)
Create a child work item for the item using the Actions menu 'Create Child Work Item' |
|
void |
createStoriesForCollection(java.lang.String collection)
Create stories from the given collection requirements. |
|
CcmPlanIterationProgressElement |
getIterationProgressElement(java.lang.String iteration)
Get progress element for the given iteration. |
|
com.ibm.team.fvt.tests.web.WebBrowserElement |
getLinkTypeElement(java.lang.String linkType)
Return the element for a link type |
|
RmWebShowCollectionPage |
gotoCollectionPageUsingHover(java.lang.String collection)
Goto the given RM collection page using the hover of the link displayed in the current page. |
|
QmWebViewTestPlanPage |
gotoTestPlanPageUsingHover(java.lang.String testPlan)
Goto the given QM test plan page using the hover of the link displayed in the current page. |
|
CcmWebWorkItemPage |
gotoWorkItemPageUsingHover(java.lang.String workItem)
Goto the given work item page using the hover of the link displayed in the current tab. |
|
void |
moveItem(java.lang.String item,
java.lang.String destination,
boolean above,
boolean clearSelection)
Move the given item above or below a destination item. |
|
void |
setPlanFor(java.lang.String item,
java.lang.String iteration)
Set 'Plan For' to a particular iteration for the given item |
|
void |
setStoryPoints(java.lang.String item,
int points)
Set story point for the given item. |
|
void |
setViewAs(java.lang.String selection)
Set the 'View As' type from drop-down list selection. |
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, 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 |
Constructor Detail |
---|
public CcmWebViewPlanPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
Method Detail |
---|
public void addColumn(java.lang.String column)
column
- The name of the column to add.public void assignToOwner(java.lang.String item, ClmUser owner)
item
- The item to assignowner
- New item ownerpublic void addLinkTestedByTestCase(java.lang.String item, java.lang.String testCase)
item
- The item to add the test case totestCase
- The name of the test casepublic void addLinkTestedByNewTestCase(java.lang.String item, java.lang.String name, java.lang.String description, java.lang.String weight, ClmUser owner, java.lang.String testPhase)
This creates a new test case using the default test case template
item
- The item to add the test case toname
- The name of the test case (mandatory)description
- The description of the test case (null if not used)weight
- The weight of the test case (null if default to be used)owner
- The owner of the test case (mandatory)testPhase
- The test phase of the test case (null if defalut to be used)public void checkChildren(java.lang.String workItem, java.lang.String... children)
workItem
- The parent work item summarychildren
- The summaries list for of all expected children
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
- If the work item children do not match the
expected list.public <P extends com.ibm.team.fvt.tests.web.WebRichHover<? extends com.ibm.team.fvt.tests.web.WebPage>> P checkCollectionRichHover(java.lang.String resource, java.lang.Class<P> hoverClass, java.lang.String... additionalData)
The collection is expected to a link in IMPLEMENTS_REQUIREMENT_COLLECTION
section.
ClmWebPage.checkRichHover(String, Class, String...)
public <RH extends com.ibm.team.fvt.tests.web.WebRichHover<? extends com.ibm.team.fvt.tests.web.WebPage>> RH checkPlannedItemRichHover(java.lang.String resource, java.lang.String column, java.lang.Class<RH> hoverClass, java.lang.String... additionalData)
resource
- The resource to check the hovercolumn
- The column where the resource link is locatedhoverClass
- The expected class for the hoverpublic void createChildWorkItem(java.lang.String item, java.lang.String type, java.lang.String summary)
Requires page View As: set to 'Iterations'
item
- The item to create the child work item fortype
- The type of child work item (i.e. 'Task')summary
- The summary to use for the new work itempublic void createStoriesForCollection(java.lang.String collection)
collection
- The collection name or titlepublic CcmPlanIterationProgressElement getIterationProgressElement(java.lang.String iteration)
iteration
- The name of the iteration (e.g. "Sprint 2")public com.ibm.team.fvt.tests.web.WebBrowserElement getLinkTypeElement(java.lang.String linkType)
linkType
- The type of the link
WebBrowserElement
or null
public RmWebShowCollectionPage gotoCollectionPageUsingHover(java.lang.String collection)
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
collection
- The collection name to find the link in the current page.
RmWebShowCollectionPage
.public QmWebViewTestPlanPage gotoTestPlanPageUsingHover(java.lang.String testPlan)
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
testPlan
- The QM test plan name to find the link in the current page.
QmWebViewTestPlanPage
.public CcmWebWorkItemPage gotoWorkItemPageUsingHover(java.lang.String workItem)
Note that this test the hover as we jump to the page through it's title link
(see WebLinkHover.clickOnTitle()
).
workItem
- The work item name to find the link in the current page.
CcmWebWorkItemPage
.public void moveItem(java.lang.String item, java.lang.String destination, boolean above, boolean clearSelection)
item
- The item to movedestination
- The destination item of the moveabove
- Tell whether move above or below the destinationclearSelection
- Tell whether the item line should be kept cleared
after the move or keep it instead.public void setPlanFor(java.lang.String item, java.lang.String iteration)
item
- The item to set 'Plan For'iteration
- The iteration to set as 'Plan For'public void setStoryPoints(java.lang.String item, int points)
item
- The item to set story pointspoints
- The points value
TODO Handle the dialog when clicking on More... itempublic void setViewAs(java.lang.String selection)
selection
- the view as selection name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |