svn commit r44094 - trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit r44094 - trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas

Charitha Kankanamge
Author: charitha
Date: Mon Aug 24 09:17:46 2009
New Revision: 44094
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=44094

Log:
Made soaptracer test to work with different web contexts

Modified:
   trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas/SOAPTracerTest.java

Modified: trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas/SOAPTracerTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas/SOAPTracerTest.java?rev=44094&r1=44093&r2=44094&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas/SOAPTracerTest.java (original)
+++ trunk/commons/qa/web-test-framework/wsas/src/test/java/org/wso2/carbon/web/test/wsas/SOAPTracerTest.java Mon Aug 24 09:17:46 2009
@@ -159,7 +159,7 @@
     public void testCaching() throws Exception {
         ServiceManagement instServiceManagement = new ServiceManagement(browser);
         SeleniumTestBase instSeleniumTestBase = new SeleniumTestBase(browser);
-        String serviceepr = "http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") + "/services/" + "Axis2Service";
+        String serviceepr = "http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") + loadProperties().getProperty("context.root")+ "/services/" + "Axis2Service";
         instServiceManagement.accessServiceDashboard("Axis2Service");
         instServiceManagement.checkCaching(serviceepr, "getTime", "urn:getTime", "http://service.carbon.wso2.org");
         browser.click("link=SOAP Tracer");
@@ -183,7 +183,7 @@
         InstSeleniumTestBase.loginToUI("admin", "admin");
 
         enableSOAPTracer();
-        String serviceepr = "http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") + "/services/" + "Axis2Service";
+        String serviceepr = "http://" + loadProperties().getProperty("host.name") + ":" + loadProperties().getProperty("http.port") + loadProperties().getProperty("context.root") + "/services/" + "Axis2Service";
         instServiceManagement.accessServiceDashboard("Axis2Service");
         instServiceManagement.checkThrottling(serviceepr, "echoString", "urn:echoString", "http://service.carbon.wso2.org", "s");
 
@@ -201,20 +201,14 @@
         //instServiceManagement.disableSecurity("Axis2Service");
     }
 
-    public void testHelp() throws Exception{
-        browser.click("link=Help");
-         assertTrue(browser.isTextPresent("SOAP Monitor Tracer"));
-         assertTrue(browser.isTextPresent("Turning on the Tracer feature will have a drag on the performance."));
-         assertTrue(browser.isTextPresent("The Tracer shows the SOAP messages, the respective SOAP message requests and responses "));
-         assertTrue(browser.isElementPresent("//img[@alt='Figure1:Turned OFF SOAP Tracer']"));
-         assertTrue(browser.isTextPresent("//img[@alt='Soap Tracer-Request/Response Messages']"));
-    }
-
-    public void testLogoutSystem() throws Exception {
-        SeleniumTestBase instSeleniumTestBase = new SeleniumTestBase(browser);
-        instSeleniumTestBase.logOutUI();
-
-    }
+//    public void testHelp() throws Exception{
+//        browser.click("link=Help");
+//         assertTrue(browser.isTextPresent("SOAP Monitor Tracer"));
+//         assertTrue(browser.isTextPresent("Turning on the Tracer feature will have a drag on the performance."));
+//         assertTrue(browser.isTextPresent("The Tracer shows the SOAP messages, the respective SOAP message requests and responses "));
+//         assertTrue(browser.isElementPresent("//img[@alt='Figure1:Turned OFF SOAP Tracer']"));
+//         assertTrue(browser.isTextPresent("//img[@alt='Soap Tracer-Request/Response Messages']"));
+//    }
 
     public void enableSOAPTracer() throws Exception {
         browser.click("link=SOAP Tracer");
@@ -257,6 +251,12 @@
 
     }
 
+    public void testLogoutSystem() throws Exception {
+        SeleniumTestBase instSeleniumTestBase = new SeleniumTestBase(browser);
+        instSeleniumTestBase.logOutUI();
+
+    }
+
     public static Properties loadProperties() throws IOException {
         Properties properties = new Properties();
         properties.load(new FileInputStream(".." + File.separator + "commons" + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "framework.properties"));

_______________________________________________
Commons-dev mailing list
[hidden email]
https://wso2.org/cgi-bin/mailman/listinfo/commons-dev