001: /*
002: * The contents of this file are subject to the terms
003: * of the Common Development and Distribution License
004: * (the License). You may not use this file except in
005: * compliance with the License.
006: *
007: * You can obtain a copy of the license at
008: * https://glassfish.dev.java.net/public/CDDLv1.0.html or
009: * glassfish/bootstrap/legal/CDDLv1.0.txt.
010: * See the License for the specific language governing
011: * permissions and limitations under the License.
012: *
013: * When distributing Covered Code, include this CDDL
014: * Header Notice in each file and include the License file
015: * at glassfish/bootstrap/legal/CDDLv1.0.txt.
016: * If applicable, add the following below the CDDL Header,
017: * with the fields enclosed by brackets [] replaced by
018: * you own identifying information:
019: * "Portions Copyrighted [year] [name of copyright owner]"
020: *
021: * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
022: */
023:
024: package com.sun.jbi.jsf.test;
025:
026: /*Collection of Woodstock Component Ids on JBI Pages*/
027:
028: public class JBIIdConstants {
029: public static final String JBI_ROOT_PAGE_LINK = "form:tree:JBIRoot:JBIRoot_link";
030:
031: public static final String JBI_ROOT_SA_LINK = "jbiRootForm:propertySheet:pss:saProperty:saText";
032:
033: public static final String JBI_ROOT_COMP_LINK = "jbiRootForm:propertySheet:pss:componentsProperty:componentsText";
034:
035: public static final String JBI_ROOT_SL_LINK = "jbiRootForm:propertySheet:pss:slProperty:slText";
036:
037: /******Common Ids for Component/Library/Deployment*****/
038:
039: //New Button ID to launch Install/Deploy wizard
040: public static final String JBI_NEW_INSTALL_BUTTON_ID = "sharedTableForm:sharedTable:topActionsGroup1:newSharedTableButton";
041:
042: //Uninstall Button ID
043: public static final String JBI_UNINSTALL_BUTTON_ID = "sharedTableForm:sharedTable:topActionsGroup1:button1";
044:
045: //ID of the first Name Hyperlink in the List Tables of JBI Pages
046: public static final String JBI_LIST_PAGE_FIRST_ELEM_NAME_LINK_ID = "sharedTableForm:sharedTable:sharedTableRowGroup:0:sharedNamesTableColumn:sharedTableNameHyperlink";
047:
048: //ID of the first elements started state in the List Tables of JBI Pages
049: public static final String JBI_LIST_PAGE_FIRST_ELEM_STATE_ID = "sharedTableForm:sharedTable:sharedTableRowGroup:0:sharedStateTableColumn:sharedstateStarted";
050:
051: //ID of the Descriptor Tab
052: public static final String JBI_SHOW_DESCRIPTOR_TAB_ID = "tabsForm:jbiShowTabs:descriptor";
053: //ID of the Configurations Tab
054: public static final String JBI_SHOW_CONFIGURATION_TAB_ID = "tabsForm:jbiShowTabs:configuration";
055: //ID of the Loggers Tab
056: public static final String JBI_SHOW_LOGGERS_TAB_ID = "tabsForm:jbiShowTabs:loggers";
057: //ID of the Targets Tab
058: public static final String JBI_SHOW_TARGETS_TAB_ID = "tabsForm:jbiShowTabs:targets";
059: //ID of the Monitoring Tab
060: public static final String JBI_SHOW_MONITORING_TAB_ID = "tabsForm:jbiShowTabs:monitor";
061: //ID of the Component's Libraries Tab
062: public static final String JBI_SHOW_COMP_LIBRARIES_TAB_ID = "tabsForm:jbiShowTabs:compDependencies";
063: //ID of the Librarie's Components Tab
064: public static final String JBI_SHOW_SL_COMPONENTS_TAB_ID = "tabsForm:jbiShowTabs:slDependencies";
065:
066: public static final String JBI_SHOW_LOAD_DEFAULTS_BUTTON_ID = "jbiShowPropertiesForm:propertyContentPage:loadDefaults";
067: public static final String JBI_SHOW_SAVE_BUTTON_ID = "jbiShowPropertiesForm:propertyContentPage:topButtons:saveButton";
068:
069: //Select the first/second element in the List table using selection Checkbox
070: public static final String JBI_LIST_PAGE_FIRST_ELEM_CB_ID = "sharedTableForm:sharedTable:sharedTableRowGroup:0:sharedSelectedTableColumn:select";
071: public static final String JBI_LIST_PAGE_SECOND_ELEM_CB_ID = "sharedTableForm:sharedTable:sharedTableRowGroup:1:sharedSelectedTableColumn:select";
072:
073: //ID of Operation Dropdown component. Same for component and deployments list page
074: public static final String JBI_OPERATION_DROPDOWN_ID = "sharedTableForm:sharedTable:topActionsGroup1:dropdown1";
075:
076: public static final String JBI_EE_SELECT_MULTIPLE_BUTTON_ID = "sharedTableEEForm:sharedTableEE:_tableActionsTop:_selectMultipleButton:_selectMultipleButton_image";
077:
078: public static final String JBI_EE_DESELECT_MULTIPLE_BUTTON_ID = "sharedTableEEForm:sharedTableEE:_tableActionsTop:_deselectMultipleButton:_deselectMultipleButton_image";
079:
080: public static final String JBI_EE_SORT_BUTTON_ID = "sharedTableEEForm:sharedTableEE:sharedTableEERowGroup:sharedNamesTableColumn:_columnHeader:_primarySortButton";
081:
082: /****Constant IDs for JBI Library Page Testing *****/
083:
084: //JBI Shared Library Node in left pane tree
085: public static final String JBI_LIBRARY_NODE_ID = "form:tree:JBIRoot:libraries:libraries_link";
086:
087: //Wizard step1 Upload component ID
088: public static final String JBI_LIBRARY_INSTALL_UPLOAD_FIELD_ID = "jbiNewLibrary1Form:uploadComp_com.sun.webui.jsf.upload";
089:
090: //Radio Button to Choose FileChooser for uploading
091: public static final String JBI_LIBRARY_INSTALL_FILECHOOSER_RADIO_ID = "jbiNewLibrary1Form:rdBtn2";
092:
093: //FileChooser Textfield ID
094: public static final String JBI_LIBRARY_INSTALL_FILECHOOSER_FIELD_ID = "jbiNewLibrary1Form:txtFld2";
095:
096: //Library installation wizard Next button id
097: public static final String JBI_LIBRARY_INSTALL_NEXT_BUTTON_ID = "jbiNewLibrary1Form:stepTitle:topButtons:nextStep";
098:
099: //Library installtion wizard Finish button id
100: public static final String JBI_LIBRARY_INSTALL_FINISH_BUTTON_ID = "jbiNewLibrary2Form:stepTitle:topButtons:finishStep";
101:
102: /***Constant IDs for JBI Binding Component/Service Engine Page Testing ***/
103:
104: //Component node in left panel tree
105: public static final String JBI_COMPONENT_NODE_ID = "form:tree:JBIRoot:bindingsEngines:bindingsEngines_link";
106:
107: public static final String JBI_COMPONENT_FILTER_DROPDOWN_ID = "sharedTableForm:sharedTable:topActionsGroup1:filterTypeDropDown_list";
108:
109: //Component installation wizard step1 Upload component id
110: public static final String JBI_COMPONENT_INSTALL_UPLOAD_FIELD_ID = "jbiNewBindingOrEngine1Form:uploadComp_com.sun.webui.jsf.upload";
111:
112: //Radio Button to Choose FileChooser for uploading
113: public static final String JBI_COMPONENT_INSTALL_FILECHOOSER_RADIO_ID = "jbiNewBindingOrEngine1Form:rdBtn2";
114:
115: //FileChooser Textfield ID
116: public static final String JBI_COMPONENT_INSTALL_FILECHOOSER_FIELD_ID = "jbiNewBindingOrEngine1Form:txtFld2";
117:
118: //Component installation wizard Next button id
119: public static final String JBI_COMPONENT_INSTALL_NEXT_BUTTON_ID = "jbiNewBindingOrEngine1Form:stepTitle:topButtons:nextStep";
120:
121: // Component installation wizard Finish button id
122: public static final String JBI_COMPONENT_INSTALL_FINISH_BUTTON_ID = "jbiNewBindingOrEngine2Form:stepTitle:topButtons:finishStep";
123:
124: // Binding Component Type Column Id
125: public static final String JBI_COMPONENT_LIST_PAGE_FIRST_BC_TYPE_ID = "sharedTableForm:sharedTable:sharedTableRowGroup:0:sharedTypeTableColumn:sharedTypeBindingText";
126:
127: // Service Engine Type Column Id
128: public static final String JBI_COMPONENT_LIST_PAGE_FIRST_SE_TYPE_ID = "sharedTableForm:sharedTable:sharedTableRowGroup:0:sharedTypeTableColumn:sharedTypeEngineText";
129:
130: /***Constant IDs for JBI Service Assemblies Page Testing ***/
131:
132: //Service Assemblies node in left panel tree
133: public static final String JBI_SERVICE_ASSEMBLY_NODE_ID = "form:tree:JBIRoot:deployments:deployments_link";
134:
135: //Service Assembly installation wizard step1 Upload component id
136: public static final String JBI_SERVICE_ASSEMBLY_DEPLOY_UPLOAD_FIELD_ID = "jbiNewDeployment1Form:uploadComp_com.sun.webui.jsf.upload";
137:
138: //Radio Button to Choose FileChooser for copying archives
139: public static final String JBI_SERVICE_ASSEMBLY_DEPLOY_FILECHOOSER_RADIO_ID = "jbiNewDeployment1Form:rdBtn2";
140:
141: //FileChooser Textfield ID
142: public static final String JBI_SERVICE_ASSEMBLY_DEPLOY_FILECHOOSER_FIELD_ID = "jbiNewDeployment1Form:txtFld2";
143:
144: //Service Assembly installation wizard Next/Finish button id
145: public static final String JBI_SERVICE_ASSEMBLY_DEPLOY_NEXT_BUTTON_ID = "jbiNewDeployment1Form:stepTitle:topButtons:nextStep";
146: public static final String JBI_SERVICE_ASSEMBLY_DEPLOY_FINISH_BUTTON_ID = "jbiNewDeployment2Form:stepTitle:topButtons:finishStep";
147:
148: /*********************************************************************/
149: /*************Cluster Console Elements/Widgets Id*********************/
150: /*********************************************************************/
151: //ID of the Descriptor Tab
152: public static final String JBI_SHOW_EE_DESCRIPTOR_TAB_ID = "tabsForm:showTabs:descriptor";
153: //ID of the Configurations Tab
154: public static final String JBI_SHOW_EE_CONFIGURATION_TAB_ID = "tabsForm:showTabs:configuration";
155: //ID of the Loggers Tab
156: public static final String JBI_SHOW_EE_LOGGERS_TAB_ID = "tabsForm:showTabs:loggers";
157: //ID of the Targets Tab
158: public static final String JBI_SHOW_EE_TARGETS_TAB_ID = "tabsForm:showTabs:targets";
159: //ID of the Monitoring Tab
160: public static final String JBI_SHOW_EE_MONITORING_TAB_ID = "tabsForm:showTabs:monitor";
161: //ID of the Component's Libraries Tab
162: public static final String JBI_SHOW_EE_COMP_LIBRARIES_TAB_ID = "tabsForm:showTabs:compDependencies";
163: //ID of the Librarie's Components Tab
164: public static final String JBI_SHOW_EE_SL_COMPONENTS_TAB_ID = "tabsForm:showTabs:slDependencies";
165:
166: //Install Button ID
167: public static final String JBI_EE_NEW_INSTALL_BUTTON_ID = "sharedTableEEForm:sharedTableEE:topActionsGroup1:newSharedTableEEButton";
168:
169: //Uninstall Button ID
170: public static final String JBI_EE_UNINSTALL_BUTTON_ID = "sharedTableEEForm:sharedTableEE:topActionsGroup1:button1";
171:
172: //Enable Button ID
173: public static final String JBI_EE_ENABLE_BUTTON_ID = "sharedTableEEForm:sharedTableEE:topActionsGroup1:button2";
174:
175: //Disable Button ID
176: public static final String JBI_EE_DISABLE_BUTTON_ID = "sharedTableEEForm:sharedTableEE:topActionsGroup1:button3";
177:
178: //Select the first/second element in the List table using selection Checkbox
179: public static final String JBI_EE_LIST_PAGE_FIRST_ELEM_CB_ID = "sharedTableEEForm:sharedTableEE:sharedTableEERowGroup:0:sharedSelectedTableColumn:select";
180:
181: //Second elements checkbox id
182: public static final String JBI_EE_LIST_PAGE_SECOND_ELEM_CB_ID = "sharedTableEEForm:sharedTableEE:sharedTableEERowGroup:1:sharedSelectedTableColumn:select";
183:
184: //ID of the first Name Hyperlink in the List Tables of JBI Pages
185: public static final String JBI_EE_LIST_PAGE_FIRST_ELEM_NAME_LINK_ID = "sharedTableEEForm:sharedTableEE:sharedTableEERowGroup:0:sharedNamesTableColumn:sharedTableEENameHyperlink";
186:
187: //ID of the first elements started state in the List Tables of JBI Pages
188: public static final String JBI_EE_LIST_PAGE_FIRST_ELEM_STATUS_ID = "sharedTableEEForm:sharedTableEE:sharedTableEERowGroup:0:sharedStatusTableColumn:sharedStateText";
189:
190: // Binding Component Type Column Id
191: public static final String JBI_EE_COMPONENT_LIST_PAGE_FIRST_BC_TYPE_ID = "sharedTableEEForm:sharedTableEE:sharedTableEERowGroup:0:sharedTypeTableColumn:sharedTypeBindingText";
192:
193: // Service Engine Type Column Id
194: public static final String JBI_EE_COMPONENT_LIST_PAGE_FIRST_SE_TYPE_ID = "sharedTableEEForm:sharedTableEE:sharedTableEERowGroup:0:sharedTypeTableColumn:sharedTypeEngineText";
195:
196: //ID of DropDown Component
197: public static final String JBI_EE_COMPONENT_TYPE_FILTER_DROPDOWN_ID = "sharedTableEEForm:sharedTableEE:topActionsGroup1:filterActionDropDown_list";
198:
199: //ID of Dropdown component for filtering by state
200: public static final String JBI_EE_COMPONENT_STATE_FILTER_DROPDOWN_ID = "sharedTableEEForm:sharedTableEE:topActionsGroup1:filterStateDropDown_list";
201:
202: //Cluster profile Library installation wizard Finish button id
203: public static final String JBI_EE_LIBRARY_INSTALL_FINISH_BUTTON_ID = "jbiNewLibrary2Form:stepTitle:topButtons:finishStepMultiTarget";
204:
205: // Cluster profile Component installation wizard Finish button id
206: public static final String JBI_EE_COMPONENT_INSTALL_FINISH_BUTTON_ID = "jbiNewBindingOrEngine2Form:stepTitle:topButtons:finishStepMultiTarget";
207:
208: // Cluster profile Service Assembly installation wizard Finish button id
209: public static final String JBI_EE_SERVICE_ASSEMBLY_DEPLOY_FINISH_BUTTON_ID = "jbiNewDeployment2Form:stepTitle:topButtons:finishStepMultiTarget";
210:
211: /*********************************************************************/
212: /*************Cluster Profile ->StandAlone Instances List Page Id*******/
213: /*********************************************************************/
214: public static final String JBI_EE_STANDALONE_INSTANCES_NODE_ID = "form:tree:standaloneInstances:standaloneInstances_link";
215:
216: public static final String JBI_EE_SERVER_NODE_ID = "form:tree:standaloneInstances:comsunappservtypeservernameservercategoryconfig:link";
217:
218: public static final String JBI_EE_SERVER_JBI_TAB_ID = "propertyForm:standaloneTabs:jbi";
219:
220: public static final String JBI_EE_SERVER_SA_LIST_PAGE_ID = "tabsForm:standaloneTabs:jbi:serverIntegrationsDeployments";
221:
222: public static final String JBI_EE_SERVER_COMP_LIST_PAGE_ID = "tabsForm:standaloneTabs:jbi:serverIntegrationsBindingsAndEngines";
223:
224: public static final String JBI_EE_SERVER_SL_LIST_PAGE_ID = "tabsForm:standaloneTabs:jbi:serverIntegrationsLibraries";
225:
226: /*********************************************************************/
227: /*************Cluster Profile ->Clusters Widgets List Page Id******/
228: /*********************************************************************/
229:
230: public static final String JBI_EE_CLUSTERS_NODE_ID = "form:tree:clusters2:clusters2_link";
231:
232: public static final String JBI_EE_CLUSTER_NODE_ID = "form:tree:clusters2:cluster0:cluster0_link";
233:
234: public static final String JBI_EE_CLUSTER_JBI_TAB_ID = "propertyForm:clusterTabs:clusterJbi";
235:
236: public static final String JBI_EE_CLUSTER_SA_LIST_PAGE_ID = "tabsForm:clusterTabs:clusterJbi:clusterIntegrationsDeployments";
237:
238: public static final String JBI_EE_CLUSTER_COMP_LIST_PAGE_ID = "tabsForm:clusterTabs:clusterJbi:clusterIntegrationsBindingsAndEngines";
239:
240: public static final String JBI_EE_CLUSTER_SL_LIST_PAGE_ID = "tabsForm:clusterTabs:clusterJbi:clusterIntegrationsLibraries";
241:
242: /*********************************************************************/
243: /*************Cluster Profile ->StandAlone Instances Widgets Id*******/
244: /*************Cluster Profile ->Clusters Widgets Id (same IDs as server)*/
245: /*********************************************************************/
246:
247: //Install Button ID
248: public static final String JBI_EE_SERVER_CLUSTER_NEW_INSTALL_BUTTON_ID = "sharedSingleTargetTableForm:singleTargetTable:topActionsGroup1:newSharedSingleTargetTableButton";
249:
250: //Uninstall Button ID
251: public static final String JBI_EE_SERVER_CLUSTER_UNINSTALL_BUTTON_ID = "sharedSingleTargetTableForm:singleTargetTable:topActionsGroup1:button1";
252:
253: //Enable Button ID
254: public static final String JBI_EE_SERVER_CLUSTER_ENABLE_BUTTON_ID = "sharedSingleTargetTableForm:singleTargetTable:topActionsGroup1:button2";
255:
256: //Disable Button ID
257: public static final String JBI_EE_SERVER_CLUSTER_DISABLE_BUTTON_ID = "sharedSingleTargetTableForm:singleTargetTable:topActionsGroup1:button3";
258:
259: //Select the first/second element in the List table using selection Checkbox
260: public static final String JBI_EE_SERVER_CLUSTER_LIST_PAGE_FIRST_ELEM_CB_ID = "sharedSingleTargetTableForm:singleTargetTable:tableRowGroup:0:selectTableColumn:selectCheckbox";
261:
262: //Second elements checkbox id
263: public static final String JBI_EE_SERVER_CLUSTER_LIST_PAGE_SECOND_ELEM_CB_ID = "sharedSingleTargetTableForm:singleTargetTable:tableRowGroup:1:selectTableColumn:selectCheckbox";
264:
265: //ID of the first Name Hyperlink in the List Tables of JBI Pages
266: public static final String JBI_EE_SERVER_CLUSTER_LIST_PAGE_FIRST_ELEM_NAME_LINK_ID = "sharedSingleTargetTableForm:singleTargetTable:tableRowGroup:0:col1:nameHyperlink";
267:
268: //ID of the first elements state in the List Tables of Cluster Profile->StandAlone Server JBI Pages
269: public static final String JBI_EE_SERVER_CLUSTER_LIST_PAGE_FIRST_ELEM_STATE_ID = "sharedSingleTargetTableForm:singleTargetTable:tableRowGroup:0:enabledTableColumn";
270:
271: //Cluster profile->Server's Library installation wizard Finish button id
272: public static final String JBI_EE_SERVER_CLUSTER_LIBRARY_INSTALL_FINISH_BUTTON_ID = "jbiNewLibrary2Form:stepTitle:topButtons:finishStepSingleTarget";
273:
274: // Cluster profile->Server's Component installation wizard Finish button id
275: public static final String JBI_EE_SERVER_CLUSTER_COMPONENT_INSTALL_FINISH_BUTTON_ID = "jbiNewBindingOrEngine2Form:stepTitle:topButtons:finishStepSingleTarget";
276:
277: // Cluster profile->Server's Service Assembly installation wizard Finish button id
278: public static final String JBI_EE_SERVER_CLUSTER_SERVICE_ASSEMBLY_DEPLOY_FINISH_BUTTON_ID = "jbiNewDeployment2Form:stepTitle:topButtons:finishStepSingleTarget";
279:
280: // Cluster profile Server/Cluster select button image ID
281: public static final String JBI_EE_SERVER_CLUSTER_SELECT_MULTIPLE_BUTTON_ID = "sharedSingleTargetTableForm:singleTargetTable:_tableActionsTop:_selectMultipleButton:_selectMultipleButton_image";
282:
283: // Cluster profile Server/Cluster deselect button image ID
284: public static final String JBI_EE_SERVER_CLUSTER_DESELECT_MULTIPLE_BUTTON_ID = "sharedSingleTargetTableForm:singleTargetTable:_tableActionsTop:_deselectMultipleButton:_deselectMultipleButton_image";
285:
286: // Cluster profile Server/Cluster sort button image ID
287: public static final String JBI_EE_SERVER_CLUSTER_SORT_NAME_BUTTON_ID = "sharedSingleTargetTableForm:singleTargetTable:tableRowGroup:col1:_columnHeader:_primarySortButton:_primarySortButton_image";
288:
289: public static final String JBI_EE_SERVER_CLUSTER_MANAGE_TARGETS_BUTTON_ID = "sharedTargetsTableForm:sharedTargetsTable:topActionsGroup1:sharedTargetsTableManageTargetsButton";
290:
291: }
|