com.ibm.team.fvt.tests.clm.pages.ccm
Class CcmWebComponentExplorerPage

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPage
      extended by com.ibm.team.fvt.tests.clm.pages.ClmWebPage
          extended by com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebPage
              extended by com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebProjectAreaPage
                  extended by com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebComponentExplorerPage
All Implemented Interfaces:
ClmWebPageConstants

public class CcmWebComponentExplorerPage
extends CcmWebProjectAreaPage

Manage a CCM explorer to view the files in a component.

Following actions are accessible on this page:

Following functionalities are also defined or specialized by this page:


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, ETL_JOB_DATE_FORMAT, JAZZ_TEAM_SERVER_HOME_MENU_ITEM, LIFECYCLE_PROJECT_ADMIN_MENU_ITEM, LOGIN_PASSWORD_LOCATOR, LOGIN_TAGNAME_LOCATOR, LOGIN_USERID_LOCATOR, USER_NOT_AUTHORIZED_MESSAGE_ID, USER_NOT_AUTHORIZED_MESSAGE_LOCATOR
 
Constructor Summary
CcmWebComponentExplorerPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
           
 
Method Summary
 void createNewSourceFile(java.lang.String filename)
          Creates an empty text file with the given filename in the current location in the component's file structure.
 void createNewSourceFile(java.lang.String filename, java.lang.String content)
          Creates a text file in with the given filename and contents in the current location in the component's file structure.
 void deleteFileOrFolder(java.lang.String name)
          Deletes the file or folder with the given name from the current location in the component's file structure.
 boolean exists(java.lang.String sourceFileName)
          Returns whether the given source file exist in the component or not.
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.ccm.CcmWebProjectAreaPage
createNewDevelopmentPlan, createNewWorkItem, createNewWorkItem, getProjectAreaName, getProjectAreaTitle, gotoDevelopmentPlanPage, gotoPlansPage, gotoQueriesPage, gotoReportsPage, gotoStreamsPage, 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, openAdminUIMenu, openHelpMenu, openHomeMenu, openMenu, openMenu, openToolbarMenu, openUserProfileMenu, save, waitForResourceLinkElement, waitWhileBusy
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebPage
checkHoverTitle, checkRichHover, equals, get, getBrowser, getCurrentPage, getLocation, getPage, getPage, getPageUsingBrowser, goBack, hashCode, login, login, openPage, openPage, openPageUsingBrowser, openPageUsingHoverTitle, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, refresh, richHoverOverLink, searchPageInHistory, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CcmWebComponentExplorerPage

public CcmWebComponentExplorerPage(java.lang.String url,
                                   ClmConfig config,
                                   com.ibm.team.fvt.tests.config.User user,
                                   java.lang.String... data)
Method Detail

createNewSourceFile

public void createNewSourceFile(java.lang.String filename)
Creates an empty text file with the given filename in the current location in the component's file structure.

Parameters:
filename - The name of the new file

createNewSourceFile

public void createNewSourceFile(java.lang.String filename,
                                java.lang.String content)
Creates a text file in with the given filename and contents in the current location in the component's file structure.

Parameters:
filename - The name of the new file
content - The contents of the new file

deleteFileOrFolder

public void deleteFileOrFolder(java.lang.String name)
Deletes the file or folder with the given name from the current location in the component's file structure.

Parameters:
name - The name of the item to delete

exists

public boolean exists(java.lang.String sourceFileName)
Returns whether the given source file exist in the component or not.

Parameters:
sourceFileName - The source file name
Returns:
true if the source file has been found in the component files list, false otherwise. TODO This is a temporary implementation which does not recurse into the component folders.