/** * Get list of nodes passing xpath * * @param xPath expresstion * @return node list * @throws XPathExpressionException */ protected static NodeList getPropertyNodeList(String xPath) throws XPathExpressionException { return context.getConfigurationNodeList(xPath); } }
protected void init(TestUserMode userMode) throws XPathExpressionException/*, AutomationUtilException*/ { automationContext = new AutomationContext(CarbonIntegrationConstants.PRODUCT_GROUP, userMode); contextUrls = automationContext.getContextUrls(); /*loginLogoutClient = new LoginLogoutClient(automationContext); sessionCookie = loginLogoutClient.login(); backendURL = automationContext.getContextUrls().getBackEndUrl(); userInfo = automationContext.getContextTenant().getContextUser(); } protected String getServiceUrl(String serviceName) throws XPathExpressionException { return automationContext.getContextUrls().getServiceUrl() + "/" + serviceName;*/ }
/** * Get node passing xpath * * @param xPath expression * @return node * @throws XPathExpressionException */ protected static Node getPropertyNode(String xPath) throws XPathExpressionException { return context.getConfigurationNode(xPath); }
protected void initPublisher(String productGroupName, String instanceName, TestUserMode userMode, String userKey) throws XPathExpressionException { automationContext = new AutomationContext(productGroupName, instanceName, userMode); backendURL = automationContext.getContextUrls().getBackEndUrl(); }
protected void init() throws Exception { automationContext = new AutomationContext("DSS", "dss001", TestUserMode.SUPER_TENANT_ADMIN); }
protected void buildTenantDetails(TestUserMode userMode) throws Exception { AutomationContext automationContext = new AutomationContext(PRODUCT_GROUP_NAME, userMode); tenantDetails = automationContext.getContextTenant(); } }
protected String getServiceURL() throws XPathExpressionException { String serviceURL = automationContext.getContextUrls().getServiceUrl(); return automationContext.getContextUrls().getServiceUrl(); } protected String getLoginURL() throws XPathExpressionException {
/** * Get value passing xpath * * @param xPath expression * @return value * @throws XPathExpressionException */ protected static String getPropertyValue(String xPath) throws XPathExpressionException { return context.getConfigurationValue(xPath); }
/** * Gets the default login url for management console. * @return The URL. */ protected String getLoginURL() throws XPathExpressionException { return mbServer.getContextUrls().getWebAppURLHttps() + "/carbon/admin/login.jsp"; }
protected void initPublisher(String productGroupName, String instanceName, TestUserMode userMode, String userKey) throws XPathExpressionException { automationContext = new AutomationContext(productGroupName, instanceName, userMode); backendURL = automationContext.getContextUrls().getBackEndUrl(); }
protected void init() throws IOException, XMLStreamException, XPathExpressionException { automationContext = new AutomationContext("EMM", "emm001", TestUserMode.SUPER_TENANT_ADMIN); }
public static String getExecutionEnvironment() throws XPathExpressionException { return instance.context.getConfigurationValue("//executionEnvironment"); }
protected void init() throws XPathExpressionException { automationContext = new AutomationContext(); }
public static String getTrustStorePassword() throws XPathExpressionException { return instance.context.getConfigurationValue("//truststore/password/text()"); }
private TestConfigurationProvider() { try { context = new AutomationContext(); } catch (XPathExpressionException e) { log.error("Loading Automation Configuration failed", e); } }
private String getTenantUserUsername(String tenantType, String tenant, String tenantUser) throws XPathExpressionException { return automationContext.getConfigurationValue( String.format(AutomationXpathConstants.TENANT_USER_USERNAME, tenantType, tenant, tenantUser)); }
public UserPopulator(String productGroupName, String instanceName) throws XPathExpressionException { this.automationContext = new AutomationContext(productGroupName, instanceName, TestUserMode.SUPER_TENANT_ADMIN); this.tenantList = getTenantList(); this.rolesList = getRolesList(); }
private String getTenantAdminUsername(String tenantType, String tenant) throws XPathExpressionException { return automationContext.getConfigurationValue( String.format(AutomationXpathConstants.ADMIN_USER_USERNAME, tenantType, tenant)); }
private char[] getTenantUserPassword(String tenantType, String tenant, String tenantUser) throws XPathExpressionException { return automationContext.getConfigurationValue( String.format(AutomationXpathConstants.TENANT_USER_PASSWORD, tenantType, tenant, tenantUser)).toCharArray(); }
private char[] getTenantAdminPassword(String tenantType, String tenant) throws XPathExpressionException { return automationContext.getConfigurationValue( String.format(AutomationXpathConstants.ADMIN_USER_PASSWORD, tenantType, tenant)).toCharArray(); }