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/02/21 17:02:18 UTC

svn commit: r510074 - in /lenya/trunk/src/modules-core/sitemanagement/test: ./ canoo/ canoo/test.xml

Author: andreas
Date: Wed Feb 21 08:02:17 2007
New Revision: 510074

URL: http://svn.apache.org/viewvc?view=rev&rev=510074
Log:
Added delete/archive webtest

Added:
    lenya/trunk/src/modules-core/sitemanagement/test/
    lenya/trunk/src/modules-core/sitemanagement/test/canoo/
    lenya/trunk/src/modules-core/sitemanagement/test/canoo/test.xml

Added: lenya/trunk/src/modules-core/sitemanagement/test/canoo/test.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/sitemanagement/test/canoo/test.xml?view=auto&rev=510074
==============================================================================
--- lenya/trunk/src/modules-core/sitemanagement/test/canoo/test.xml (added)
+++ lenya/trunk/src/modules-core/sitemanagement/test/canoo/test.xml Wed Feb 21 08:02:17 2007
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<project name="Site management test" basedir="." default="main">
+  
+  <import file="${webtest.home}/lib/taskdef.xml"/>
+  
+  <target name="main" depends="delete"/>
+  
+    
+  <target name="delete">
+
+    <property name="number" value="10"/>
+    
+    <webtest name="Delete">
+      <config host="localhost" port="8888" protocol="http" basepath="default">
+        <header name="Accept-Language" value="en"/>
+        <option name="JavaScriptEnabled" value="false"/>
+      </config>
+      <steps>
+        <!-- login as lenya -->
+        <invoke url="authoring/index.html" />
+        <setInputField name="username" value="lenya"/>
+        <setInputField name="password" value="levi"/>
+        <clickButton name="submit"/>
+        <verifyElementText type="span" name="workflow-state" text="authoring"/>
+
+        <repeat count="${number}">
+          
+          <echo>Delete/Restore/Archive/Restore: Test #{count} of ${number}</echo>
+          
+          <!-- delete -->
+          <invoke url="authoring/tutorial.html?lenya.usecase=sitemanagement.delete"/>
+          <verifyElementText type="h1" text="Delete Document"/>
+          <clickButton name="submit"/>
+          <verifyElementText type="h1" text="Overview"/>
+          <verifyText text="No overview available."/>
+          <invoke url="trash/tutorial.html?lenya.usecase=tab.overview"/>
+          <verifyElementText type="span" name="workflow-state" text="trash"/>
+          
+          <!-- restore -->
+          <invoke url="trash/tutorial.html?lenya.usecase=sitemanagement.restore"/>
+          <verifyElementText type="h1" text="Restore Document"/>
+          <clickButton name="submit"/>
+          <verifyElementText type="h1" text="Overview"/>
+          <verifyText text="A short tutorial on using Apache Lenya"/>
+          <verifyElementText type="span" name="workflow-state" text="authoring"/>
+        
+          <!-- archive -->
+          <invoke url="authoring/tutorial.html?lenya.usecase=sitemanagement.archive"/>
+          <verifyElementText type="h1" text="Archive Document"/>
+          <clickButton name="submit"/>
+          <verifyElementText type="h1" text="Overview"/>
+          <verifyText text="No overview available."/>
+          <invoke url="archive/tutorial.html?lenya.usecase=tab.overview"/>
+          <verifyElementText type="span" name="workflow-state" text="archive"/>
+          
+          <!-- restore -->
+          <invoke url="archive/tutorial.html?lenya.usecase=sitemanagement.restore"/>
+          <verifyElementText type="h1" text="Restore Document"/>
+          <clickButton name="submit"/>
+          <verifyElementText type="h1" text="Overview"/>
+          <verifyText text="A short tutorial on using Apache Lenya"/>
+          <verifyElementText type="span" name="workflow-state" text="authoring"/>
+          
+        </repeat>
+        
+        <!-- logout -->
+        <invoke url="index.html?lenya.usecase=ac.logout"/>
+        <clickButton name="submit"/>
+        
+      </steps>
+    </webtest>
+  </target>
+  
+</project>
\ No newline at end of file



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