[Yanel-commits] rev 45785 - in public/yanel/trunk/src/realms/yanel-website/src/test/canoo: definitions tests

michi at wyona.com michi at wyona.com
Tue Dec 1 21:21:42 CET 2009


Author: michi
Date: 2009-12-01 21:21:42 +0100 (Tue, 01 Dec 2009)
New Revision: 45785

Added:
   public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/login-as-alice.xml
Modified:
   public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/workflow.xml
Log:
login as alice and check publish transition

Added: public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/login-as-alice.xml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/login-as-alice.xml	                        (rev 0)
+++ public/yanel/trunk/src/realms/yanel-website/src/test/canoo/definitions/login-as-alice.xml	2009-12-01 20:21:42 UTC (rev 45785)
@@ -0,0 +1,14 @@
+<!-- Do NOT add an XML declaration! -->
+<macrodef name="login-as-alice" description="Login as user 'alice'">
+  <sequential>
+    <invoke description="Get the page: Login to realm" url="${realm.prefix}index.html?yanel.toolbar=on"/>
+    <verifyText description="Verify that text is contained in the page" text="Login"/>
+
+    <setInputField name="yanel.login.username" value="alice"/>
+    <setInputField name="yanel.login.password" value="levi"/>
+    <clickButton label="Login" fieldIndex="0"/>
+<!--
+    <clickButton name="Senden"/>
+-->
+  </sequential>
+</macrodef>

Modified: public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/workflow.xml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/workflow.xml	2009-12-01 20:12:05 UTC (rev 45784)
+++ public/yanel/trunk/src/realms/yanel-website/src/test/canoo/tests/workflow.xml	2009-12-01 20:21:42 UTC (rev 45785)
@@ -33,11 +33,12 @@
        <verifyText description="cancel approve" text="Cancel Approve"/>
 
        <verifyText description="check submit link exists" text="../en/about.html?yanel.resource.workflow.transition=submit&amp;amp;yanel.resource.revision=1180700931944&amp;amp;yanel.resource.workflow.transition.output=xhtml"/>
+       <logout/>
 
-<!-- TODO: Login as "alice", because the user "lenya" is not authorized to execute the workflow transition "publish"
+       <login-as-alice/>
+       <invoke description="Get the page: " url="/${realm.prefix}en/about.html"/>
        <verifyText description="check publish link exists" text="../en/about.html?yanel.resource.workflow.transition=publish&amp;amp;yanel.resource.revision=1180700931944&amp;amp;yanel.resource.workflow.transition.output=xhtml"/>
--->
-
+       <logout/>
      </steps>
     </webtest>
   </target>



More information about the Yanel-commits mailing list