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

michi at wyona.com michi at wyona.com
Wed Jul 30 11:43:32 CEST 2008


Author: michi
Date: 2008-07-30 11:43:32 +0200 (Wed, 30 Jul 2008)
New Revision: 37742

Modified:
   public/yanel/trunk/src/realms/use-cases/yanel/config/src/test/canoo/tests/usecase-test-create-resource.xml
Log:
more tests added

Modified: public/yanel/trunk/src/realms/use-cases/yanel/config/src/test/canoo/tests/usecase-test-create-resource.xml
===================================================================
--- public/yanel/trunk/src/realms/use-cases/yanel/config/src/test/canoo/tests/usecase-test-create-resource.xml	2008-07-30 09:25:27 UTC (rev 37741)
+++ public/yanel/trunk/src/realms/use-cases/yanel/config/src/test/canoo/tests/usecase-test-create-resource.xml	2008-07-30 09:43:32 UTC (rev 37742)
@@ -6,17 +6,29 @@
   <import file="../definitions.xml"/>
 
   <target name="test" depends="wt.defineMacros">
-    <webtest name="Usecase Test 'Create resource'">
+    <webtest name="Usecase Test 'Create resource: Select template'">
       &config;
       <invoke description="Get the page: " url="/${realm.prefix}resource-creator.html"/>
       <verifyText description="Verify that text is contained in the page" text="Select template"/>
     </webtest>
 
-    <webtest name="Usecase Test 'Create resource: Select template'">
+    <webtest name="Usecase Test 'Create resource: Enter parameters'">
       &config;
-      <invoke description="Get the page: " url="/${realm.prefix}resource-creator.html"/>
+      <invoke description="Get the page: " url="/${realm.prefix}resource-creator.html?resource-type=http%3A%2F%2Fwww.wyona.org%2Fyanel%2Fresource%2F1.0%3A%3Awiki&amp;referer=http%3A%2F%2F127.0.0.1%3A8080%2Fyanel%2Ftest%2Fuse-cases%2F"/>
       <verifyText description="Verify that text is contained in the page" text="Enter/Select template"/>
     </webtest>
+
+    <webtest name="Usecase Test 'Create resource: Resource created'">
+      &config;
+      <invoke description="Get the page: " url="/${realm.prefix}resource-creator.html?resource-type=http%3A%2F%2Fwww.wyona.org%2Fyanel%2Fresource%2F1.0%3A%3Awiki&amp;referer=http%3A%2F%2F127.0.0.1%3A8080%2Fyanel%2Ftest%2Fuse-cases%2F"/>
+      <verifyText description="Verify that text is contained in the page" text="Resource has been created"/>
+    </webtest>
+
+    <webtest name="Usecase Test 'Create resource: New Resource'">
+      &config;
+      <invoke description="Get the page: " url="/${realm.prefix}test-resource-creator-wiki.html"/>
+      <verifyText description="Verify that text is contained in the page" text="Test 101"/>
+    </webtest>
   </target>
 
 </project>



More information about the Yanel-commits mailing list