com.ibm.team.fvt.tests.clm.topology
Class ClmTopology

java.lang.Object
  extended by com.ibm.team.fvt.tests.topology.Topology
      extended by com.ibm.team.fvt.tests.clm.topology.ClmTopology
All Implemented Interfaces:
ClmConstants, ClmTopologyConstants

public class ClmTopology
extends com.ibm.team.fvt.tests.topology.Topology
implements ClmConstants, ClmTopologyConstants

Manage the CLM topology which is made of following applications: JTS, CCM, QM, RM, and LPA.

Note that the CLM topology base URL can also be computed from "server.uri" parameter (e.g. for automatic BVT run) instead of the "baseUrl" parameter. This peculiar parameter is currently used by the automated BVT build.


Field Summary
 
Fields inherited from interface com.ibm.team.fvt.tests.clm.config.ClmConstants
CLM_301x_VERSION, CLM_400x_VERSION, CLM_402x_VERSION, CLM_403_VERSION, CLM_ADMIN_USER_ID, CLM_ADMIN_USERID, CLM_VERSION_ID, DEFAULT_ADMIN_USER_ID, DEFAULT_ADMIN_USERID, DW_ETL_USER_ID, DW_USER_ID, DW_USERID, EXPRESS_SETUP_ID, FAILURE_SCREENSHOTS_DIRECTORY_ID, LDAP, NON_LDAP_EXTERNAL, PASSING_SCREENSHOTS_DIRECTORY_ID, SELENIUM_SCREENSHOT_DIR_ID, SELENIUM_SCREENSHOT_NONFAILURE_DIR_ID, TOMCAT
 
Fields inherited from interface com.ibm.team.fvt.tests.clm.topology.ClmTopologyConstants
ADMIN, ANALYST, CCM, CONTRIBUTOR, DESIGN_MANAGER, DESIGN_REVIEWER, DESIGNER, DEVELOPER, DEVELOPER_IEP, DM, DM_LICENSE_ID, DNG, DNG_LICENSE_ID, JTS, LICENSING, LICENSING_RHAPSODY_CONTRIBUTOR_ID, LICENSING_RHAPSODY_DESIGN_MANAGER_ID, LICENSING_RHAPSODY_DESIGN_REVIEWER_ID, LICENSING_RQM_TESTER_ID, LICENSING_RQM_VIEWER_ID, LICENSING_RRC_AUTHOR_ID, LICENSING_RRC_REVIEWER_ID, LICENSING_RSA_CONTRIBUTOR_ID, LICENSING_RSA_DESIGNER_ID, LICENSING_RTC_CONTRIBUTOR_ID, LICENSING_RTC_DEVELOPER_ID, LICENSING_RTC_DEVELOPER_IEP_ID, LICENSING_RTC_STAKEHOLDER_ID, QM, QM_LICENSE_ID, QUALITY_PROFESSIONAL, RM, RM_LICENSE_ID, RSA, RSA_LICENSE_ID, RTC_LICENSE_ID, STAKEHOLDER, VVC
 
Constructor Summary
ClmTopology()
           
 
Method Summary
 ClmApplication getApplication(java.lang.String url)
           
 ClmApplication getApplicationFromName(java.lang.String appli)
          Return the application from its name.
 CcmApplication getCcmApplication()
          Return the CCM application tested by the scenario.
 DmApplication getDmApplication(boolean check)
          Return the DM application tested by the scenario.
 JtsApplication getJtsApplication()
          Return the JTS application tested by the scenario.
 java.util.List<ClmApplication> getLicensedApplications()
          Return test licensed applications.
 LpaApplication getLpaApplication()
          Return the LPA application tested by the scenario.
 QmApplication getQmApplication()
          Return the QM application tested by the scenario.
 java.util.List<ClmApplication> getRegisteredApplications()
          Return test registered applications.
 ClmApplication getRmApplication()
          Return the RM application tested by the scenario.
 VvcApplication getVvcApplication(boolean check)
          Return the VVC application tested by the scenario.
 boolean hasDmApplication()
          Return whether the scenario includes the DM application.
 boolean hasVvcApplication()
          Return whether the scenario includes the DM application.
 boolean includesDM()
          Returns whether the scenario runs against a CLM installation which includes Design Manager product (ie.
 
Methods inherited from class com.ibm.team.fvt.tests.topology.Topology
getApplications, getLoggedUser, getPageUrl, login, logout, needLogin
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClmTopology

public ClmTopology()
Method Detail

getApplication

public ClmApplication getApplication(java.lang.String url)
Overrides:
getApplication in class com.ibm.team.fvt.tests.topology.Topology

getApplicationFromName

public ClmApplication getApplicationFromName(java.lang.String appli)
                                      throws com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
Return the application from its name.

Note that name can start with a '/' or not (e.g. either "ccm" or "/ccm" is valid name).

Parameters:
appli - The application name
Returns:
The application matching the given name
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - If there's no application matching

getCcmApplication

public CcmApplication getCcmApplication()
Return the CCM application tested by the scenario.

Returns:
The CCM application as CcmApplication.

getDmApplication

public DmApplication getDmApplication(boolean check)
Return the DM application tested by the scenario.

Parameters:
check - Tells whether to fail if the application does not exist
Returns:
The DM application as DmApplication.
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - When check is true and the topology is not supposed to include DM application.

getJtsApplication

public JtsApplication getJtsApplication()
Return the JTS application tested by the scenario.

Returns:
The JTS application as JtsApplication.

getLicensedApplications

public java.util.List<ClmApplication> getLicensedApplications()
Return test licensed applications.

These application typically will need to have a license activated during the JTS setup.

Returns:
The licensed applications as a List of ClmApplication.

getLpaApplication

public LpaApplication getLpaApplication()
Return the LPA application tested by the scenario.

Returns:
The LPA application as LpaApplication.

getQmApplication

public QmApplication getQmApplication()
Return the QM application tested by the scenario.

Returns:
The QM application as QmApplication.

getRegisteredApplications

public java.util.List<ClmApplication> getRegisteredApplications()
Return test registered applications.

These application typically will be registered during the JTS setup.

Returns:
The registered applications as a List of ClmApplication.

getRmApplication

public ClmApplication getRmApplication()
Return the RM application tested by the scenario.

Returns:
The RM application as RmApplication.

getVvcApplication

public VvcApplication getVvcApplication(boolean check)
Return the VVC application tested by the scenario.

Parameters:
check - Tells whether to fail if the application does not exist
Returns:
The VVC application as VvcApplication.

hasDmApplication

public boolean hasDmApplication()
Return whether the scenario includes the DM application.

Returns:
true if the DM application is allowed for the current scenario, false otherwise.

hasVvcApplication

public boolean hasVvcApplication()
Return whether the scenario includes the DM application.

Returns:
true if the DM application is allowed for the current scenario, false otherwise.

includesDM

public boolean includesDM()
Returns whether the scenario runs against a CLM installation which includes Design Manager product (ie. DM).

To specify it, then use the following parameter: