protected String getBackendURL() throws XPathExpressionException { return automationContext.getContextUrls().getBackEndUrl(); }
String tempUrl = contextUrls.getWebAppURL(); if (tempUrl.contains("/t/")) { tempUrl = tempUrl.split("/t/")[0]; tempUrl = contextUrls.getBackEndUrl(); if (tempUrl.contains("/t/")) { tempUrl = tempUrl.split("/t/")[0]; tempUrl = contextUrls.getServiceUrl(); if (tempUrl.contains("/t/")) { tempUrl = tempUrl.split("/t/")[0]; tempUrl = contextUrls.getSecureServiceUrl(); if (tempUrl.contains("/t/")) { tempUrl = tempUrl.split("/t/")[0];
protected void init(String domainKey, String userKey) throws Exception { bpsServer = new AutomationContext("BPS", "bpsServerInstance0001", domainKey, userKey); loginLogoutClient = new LoginLogoutClient(bpsServer); sessionCookie = loginLogoutClient.login(); backEndUrl = bpsServer.getContextUrls().getBackEndUrl(); serviceUrl = bpsServer.getContextUrls().getServiceUrl(); bpelUploaderClient = new BpelUploaderClient(backEndUrl, sessionCookie); humanTaskUploaderClient = new HumanTaskUploaderClient(backEndUrl, sessionCookie); bpmnUploaderClient = new BPMNUploaderClient(backEndUrl, sessionCookie); }
protected void init(TestUserMode testUserMode) throws Exception { storeContext = new AutomationContext("es", "store", testUserMode); publisherContext = new AutomationContext("es", "publisher", testUserMode); automationContext = new AutomationContext("es",testUserMode); loginLogoutClient = new LoginLogoutClient(automationContext); sessionCookie = loginLogoutClient.login(); backendURL = automationContext.getContextUrls().getBackEndUrl(); webAppURL = automationContext.getContextUrls().getWebAppURL(); userInfo = automationContext.getContextTenant().getContextUser(); }
protected String getWebSocketAPIInvocationURL(String apiContext, String version) throws XPathExpressionException { String url = gatewayContextWrk.getContextUrls().getServiceUrl().replace("/services", ""). replace("http", "ws"); url = url.substring(0, url.lastIndexOf(":") + 1) + (inboundWebSocketPort + portOffset) + "/" + apiContext + "/" + version; return url; }
protected String getStoreUrl() throws XPathExpressionException{ return automationContext.getContextUrls().getSecureServiceUrl().replace("services", "store/apis"); }
protected String getWebAppURL() throws XPathExpressionException { return automationContext.getContextUrls().getWebAppURL(); }
protected void init(TestUserMode testUserMode) throws Exception { bpsServer = new AutomationContext("BPS", testUserMode); loginLogoutClient = new LoginLogoutClient(bpsServer); sessionCookie = loginLogoutClient.login(); backEndUrl = bpsServer.getContextUrls().getBackEndUrl(); serviceUrl = bpsServer.getContextUrls().getServiceUrl(); bpelUploaderClient = new BpelUploaderClient(backEndUrl, sessionCookie); humanTaskUploaderClient = new HumanTaskUploaderClient(backEndUrl, sessionCookie); bpmnUploaderClient = new BPMNUploaderClient(backEndUrl, sessionCookie); }
protected void init(TestUserMode userType) throws Exception { esContext = new AutomationContext("ES", userType); automationContext = esContext; LoginLogoutClient loginLogoutClient = new LoginLogoutClient(esContext); sessionCookie = loginLogoutClient.login(); //return the current tenant as the userType(TestUserMode) tenantInfo = esContext.getContextTenant(); //return the user information initialized with the system userInfo = automationContext.getContextTenant().getContextUser(); backendURL = automationContext.getContextUrls().getBackEndUrl(); webAppURL = automationContext.getContextUrls().getWebAppURL(); storeContext = new AutomationContext("ES", "store", userType); publisherContext = new AutomationContext("ES", "publisher", userType); } protected void init(String tenantKey, String userKey) throws Exception {
protected String getWebSocketTenantAPIInvocationURL(String apiContext, String version, String tenantDomain) throws XPathExpressionException { String url = gatewayContextWrk.getContextUrls().getServiceUrl().replace("/services", ""). replace("http", "ws"); url = url.substring(0, url.lastIndexOf(":") + 1) + (inboundWebSocketPort + portOffset) + "/t/" + tenantDomain + "/" + apiContext + "/" + version; return url; }
protected String getStoreBaseUrl() throws XPathExpressionException { return automationContext.getContextUrls().getSecureServiceUrl().replace("services", "store"); }
/** * This method obtains base URl (ex: https://localhost:9443) required for the full endpoint creation * * @return String as a context URL */ private String getBaseUrl() { if (esContext == null) { throw new IllegalStateException("init() has not been successfully called"); } try { return esContext.getContextUrls().getWebAppURL(); } catch (XPathExpressionException e) { LOG.error("Couldn't obtain WebAppUrl", e); throw new RuntimeException("Error while obtaining WebAppUrl ", e); } }
protected String getBackendURL() throws XPathExpressionException { return automationContext.getContextUrls().getBackEndUrl(); }
protected void init() throws Exception { bpsServer = new AutomationContext("BPS", TestUserMode.SUPER_TENANT_ADMIN); loginLogoutClient = new LoginLogoutClient(bpsServer); sessionCookie = loginLogoutClient.login(); backEndUrl = bpsServer.getContextUrls().getBackEndUrl(); serviceUrl = bpsServer.getContextUrls().getServiceUrl(); bpelUploaderClient = new BpelUploaderClient(backEndUrl, sessionCookie); humanTaskUploaderClient = new HumanTaskUploaderClient(backEndUrl, sessionCookie); bpmnUploaderClient = new BPMNUploaderClient(backEndUrl, sessionCookie); }
protected String getServiceURL() throws XPathExpressionException { String serviceURL = automationContext.getContextUrls().getServiceUrl(); return automationContext.getContextUrls().getServiceUrl(); } protected String getLoginURL() throws XPathExpressionException {
protected String getPublisherUrl() throws XPathExpressionException{ return automationContext.getContextUrls().getSecureServiceUrl().replace("services", "publisher/apis"); }
protected String getBackendURL() throws XPathExpressionException { return automationContext.getContextUrls().getBackEndUrl(); }
protected String getAPIInvocationURLHttp(String apiContext, String version) throws XPathExpressionException { return gatewayContextWrk.getContextUrls().getServiceUrl().replace("/services", "") + "/" + apiContext + "/" + version; }
protected String getPublisherBaseUrl() throws XPathExpressionException { return automationContext.getContextUrls().getSecureServiceUrl().replace("services", "publisher"); }
protected String getKeyManagerURLHttps() throws XPathExpressionException { return keyManagerContext.getContextUrls().getBackEndUrl().replace("/services", ""); }