@Test( groups = "wso2.as", description = "Invoke web application", dependsOnMethods = "testWebApplicationDeployment") public void testInvokeWebApp() throws Exception { String webAppURLLocal = webAppURL + "/appServer-valied-deploymant-1.0.0"; HttpClientUtil client = new HttpClientUtil(); OMElement omElement = client.get(webAppURLLocal); assertEquals(omElement.toString(), "<status>success</status>", "Web app invocation fail"); }
protected String runAndGetResultAsString(String webAppURL) throws Exception { HttpClientUtil client = new HttpClientUtil(); return client.get(webAppURL).toString(); }
protected OMElement runAndGetResultAsOMElement(String webAppURL) throws Exception { HttpClientUtil client = new HttpClientUtil(); return client.get(webAppURL); }