[Yanel-commits] rev 48288 - public/yanel/trunk/src/realms/use-cases/yanel/src/test/canoo/tests

michi at wyona.com michi at wyona.com
Thu Mar 25 10:21:16 CET 2010


Author: michi
Date: 2010-03-25 10:21:16 +0100 (Thu, 25 Mar 2010)
New Revision: 48288

Modified:
   public/yanel/trunk/src/realms/use-cases/yanel/src/test/canoo/tests/allTests.xml
   public/yanel/trunk/src/realms/use-cases/yanel/src/test/canoo/tests/usecase-test-policy-manager.xml
Log:
policy manager and editor test started

Modified: public/yanel/trunk/src/realms/use-cases/yanel/src/test/canoo/tests/allTests.xml
===================================================================
--- public/yanel/trunk/src/realms/use-cases/yanel/src/test/canoo/tests/allTests.xml	2010-03-25 09:09:23 UTC (rev 48287)
+++ public/yanel/trunk/src/realms/use-cases/yanel/src/test/canoo/tests/allTests.xml	2010-03-25 09:21:16 UTC (rev 48288)
@@ -3,13 +3,11 @@
 <project name="RealmTest-allTests" default="test">
   <target name="test" description="runs all the tests">
 
-    <!-- note: the following tests can be run independently from any other using '-Dwt.testInWork=tests/usecase-test-<test-name>.xml':-->
+    <!-- NOTE: the following tests can be run independently from any other using '-Dwt.testInWork=tests/usecase-test-<test-name>.xml':-->
+    <!-- NOTE: the order of all the tests below matters because some tests depend on others: -->
 
-    <!--FIXME deactivated because it fails when run from some customer projects on Hudson: ant antfile="usecase-test-policy-manager.xml"/--><!--FIXME does not logout => change state => may influence following tests -->
+    <ant antfile="usecase-test-policy-manager.xml"/>
 
-
-    <!-- note: the order of all the tests below matters because some tests depend on others: -->
-
     <ant antfile="exists-homepage.xml"/>
     <ant antfile="usecase-test-login.xml"/>
     <ant antfile="usecase-test-404.xml"/>
@@ -26,6 +24,5 @@
     <ant antfile="usecase-test-viewtest.xml"/>
     <ant antfile="usecase-test-timeline.xml"/>
     <ant antfile="usecase-test-update-webapp-resource.xml"/>
-
   </target>
 </project>

Modified: public/yanel/trunk/src/realms/use-cases/yanel/src/test/canoo/tests/usecase-test-policy-manager.xml
===================================================================
--- public/yanel/trunk/src/realms/use-cases/yanel/src/test/canoo/tests/usecase-test-policy-manager.xml	2010-03-25 09:09:23 UTC (rev 48287)
+++ public/yanel/trunk/src/realms/use-cases/yanel/src/test/canoo/tests/usecase-test-policy-manager.xml	2010-03-25 09:21:16 UTC (rev 48288)
@@ -12,27 +12,25 @@
       &config;
       <login/>
 
-      <invoke description="Get the policy editor page: " url="/${realm.prefix}?yanel.policy=update"/>
+      <!-- Test policy viewer/manager -->
+      <invoke description="Get the policy viewer page: " url="/${realm.prefix}?yanel.policy=read"/>
+      <verifyText description="Check policy path in page title:" text="Aggregated Access Policy for path &lt;em&gt;/&lt;/em&gt;:"/>
 
+      <!-- Test policy editor -->
+      <invoke description="Get the policy editor page: " url="/${realm.prefix}?yanel.policy=update"/>
       <verifyText description="Check policy path in page title:" text="Edit Access Policy of Node '/'"/>
 
-<!--FIXME looks like Canoo cannot execute GWT's Javascript, as the whole GWT root panel remains empty:
+<!-- FIXME: looks like Canoo cannot execute GWT's Javascript, as the whole GWT root panel remains empty! -->
+<!-- NOTE: Javascript is configured within src/realms/use-cases/yanel/src/test/canoo/includes/config.xml -->
+<!--
     <retry maxcount="10">
       <sleep description="Wait a bit for GWT JS to initialize" seconds="1"/>
       <verifyText description="Check policy editor name in page body" text="Wyona Access Control Policy (GWT) Editor"/>
     </retry>
 -->
 
-      <invoke description="Get the policy viewer page: " url="/${realm.prefix}?yanel.policy=read"/>
 
-      <verifyText description="Check policy path in page title:" text="Aggregated Access Policy for path &lt;em&gt;/&lt;/em&gt;:"/>
-
-
-<!--FIXME logout seems not to work reliably for this test, and oddly enough Canoo does not provide a link to the last produced page:
       <logout/>
--->
     </webtest>
-
   </target>
-
 </project>



More information about the Yanel-commits mailing list