Package: AutomationXpathConstants

AutomationXpathConstants

nameinstructionbranchcomplexitylinemethod
AutomationXpathConstants()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: *Copyright (c) 2015​, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
3: *
4: *WSO2 Inc. licenses this file to you under the Apache License,
5: *Version 2.0 (the "License"); you may not use this file except
6: *in compliance with the License.
7: *You may obtain a copy of the License at
8: *
9: *http://www.apache.org/licenses/LICENSE-2.0
10: *
11: *Unless required by applicable law or agreed to in writing,
12: *software distributed under the License is distributed on an
13: *"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14: *KIND, either express or implied. See the License for the
15: *specific language governing permissions and limitations
16: *under the License.
17: */
18: package org.wso2.am.integration.test.utils;
19:
20: public class AutomationXpathConstants {
21: public static final String ADMIN_USER_PASSWORD = "//%s/tenant[@domain='%s']/admin/user/password";
22: public static final String USERS_NODE = "//%s/tenant[@domain='%s']/users";
23: public static final String USER_NODE = "//%s/tenant[@domain='%s']/users/user";
24: public static final String ADMIN_USER_USERNAME = "//%s/tenant[@domain='%s']/admin/user/userName";
25: public static final String TENANT_USER_USERNAME = "//%s/tenant[@domain='%s']/users/user[@key='%s']/userName";
26: public static final String SUPER_TENANT_DOMAIN = "//superTenant/tenant[@key='superTenant']/@domain";
27: public static final String TENANT_USER_PASSWORD = "//%s/tenant[@domain='%s']/users/user[@key='%s']/password";
28: public static final String PRODUCT_GROUP = "//productGroup";
29: public static final String SELENIUM_BROWSER_TYPE = "//tools/selenium/browser/browserType";
30: public static final String SELENIUM_REMOTE_WEB_DRIVER_URL = "//tools/selenium/remoteDriverUrl";
31: public static final String CHROME_WEB_DRIVER_URL = "//tools/selenium/browser/webdriverPath";
32: public static final String USER_MANAGEMENT_SUPER_TENANT_DOMAIN = "//superTenant/tenant/@domain";
33:
34:
35: public static final String CLUSTERING_ENABLED = "clusteringEnabled";
36: public static final String TENANTS_NODE = "//tenants";
37: public static final String TENANTS = "tenants";
38: public static final String SUPER_TENANT = "superTenant";
39: public static final String DOMAIN = "domain";
40: public static final String KEY = "key";
41: public static final String NAME = "name";
42: public static final String TYPE = "type";
43: public static final String WEB_CONTEXT_ENABLED = "webContextEnabled";
44: public static final String WEB_CONTEXT_ROOT = "//test/root";
45: public static final String DATA_SOURCE_NAME = "//datasources/datasource/name";
46: public static final String DATA_SOURCE_URL = "//datasources/datasource/url";
47: public static final String DATA_SOURCE_DRIVER_CLASS_NAME = "//datasources/datasource/driverClassName";
48: public static final String DATA_SOURCE_DB_USER_NAME = "//datasources/datasource/username";
49: public static final String DATA_SOURCE_DB_PASSWORD = "//datasources/datasource/password";
50:
51: public static final String ROLES_NODE = "//userManagement/roles";
52: public static final String PERMISSIONS_NODE = "//userManagement/roles/role[@name='%s']/permissions";
53: public static final String TENANT_USER_ROLES = "//%s/tenant[@domain='%s']/users/user[@key='%s']/roles";
54: }