You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/03/20 16:54:49 UTC

svn commit: r520449 - /lenya/trunk/src/modules-core/workflow/test/canoo/test.xml

Author: andreas
Date: Tue Mar 20 08:54:48 2007
New Revision: 520449

URL: http://svn.apache.org/viewvc?view=rev&rev=520449
Log:
Added web test to check the last-published footer

Modified:
    lenya/trunk/src/modules-core/workflow/test/canoo/test.xml

Modified: lenya/trunk/src/modules-core/workflow/test/canoo/test.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/workflow/test/canoo/test.xml?view=diff&rev=520449&r1=520448&r2=520449
==============================================================================
--- lenya/trunk/src/modules-core/workflow/test/canoo/test.xml (original)
+++ lenya/trunk/src/modules-core/workflow/test/canoo/test.xml Tue Mar 20 08:54:48 2007
@@ -20,11 +20,11 @@
   
   <import file="${webtest.home}/lib/taskdef.xml"/>
   
-  <target name="main" depends="sequence, overview"/>
+  <target name="main" depends="sequence, published-footer, overview"/>
   
     
   <target name="sequence">
-    <webtest name="myTest">
+    <webtest name="Workflow sequence">
       <config host="localhost" port="8888" protocol="http" basepath="default/authoring" />
       <steps>
         <!-- login as lenya -->
@@ -94,10 +94,11 @@
         <verifyElementText type="span" name="workflow-state" text="review"/>
         
         <!-- publish -->
+        
         <invoke url="index.html?lenya.usecase=workflow.publish"/>
         <clickButton name="submit"/>
         <verifyElementText type="span" name="workflow-state" text="live"/>
-
+        
         <!-- deactivate -->
         <invoke url="index.html?lenya.usecase=workflow.deactivate"/>
         <clickButton name="submit"/>
@@ -112,6 +113,49 @@
   </target>
   
   
+  <target name="published-footer">
+    <webtest name="Workflow sequence">
+      <config host="localhost" port="8888" protocol="http" basepath="default">
+        <option name="ThrowExceptionOnFailingStatusCode" value="false"/>
+      </config>
+      <steps>
+        <!-- login as alice -->
+        <invoke url="authoring/tutorial.html" />
+        <setInputField name="username" value="alice"/>
+        <setInputField name="password" value="levi"/>
+        <clickButton name="submit"/>
+        <verifyElementText type="span" name="workflow-state" text="authoring"/>
+        
+        <!-- submit -->
+        <invoke url="authoring/tutorial.html?lenya.usecase=workflow.submit"/>
+        <clickButton name="submit"/>
+        <verifyElementText type="span" name="workflow-state" text="review"/>
+        
+        <!-- live version should not exist -->
+        <invoke url="live/tutorial.html"/>
+        <storeResponseCode property="status" />
+        <verifyProperty name="status" text="404"/>
+        
+        <!-- publish -->
+        <verifyText text="This page has not been published yet."/>
+        <invoke url="authoring/tutorial.html?lenya.usecase=workflow.publish"/>
+        <clickButton name="submit"/>
+        <verifyElementText type="span" name="workflow-state" text="live"/>
+        <verifyText text="This page was last published at"/>
+        <verifyText text="by Alice."/>
+        
+        <invoke url="live/tutorial.html"/>
+        <verifyText text="This page was last published at"/>
+        
+        <!-- logout -->
+        <invoke url="authoring/tutorial.html?lenya.usecase=ac.logout"/>
+        <clickButton name="submit"/>
+        
+      </steps>
+    </webtest>
+  </target>
+  
+  
   <target name="overview">
     <webtest name="myTest">
       <config host="localhost" port="8888" protocol="http" basepath="default/authoring">
@@ -127,7 +171,6 @@
         
         <invoke url="index.html?lenya.usecase=workflow.multiWorkflow"/>
         <verifyElementText type="h1" text="Workflow Overview"/>
-        
       </steps>
     </webtest>
   </target>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org