| <?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. |
| --> |
| |
| <!DOCTYPE project SYSTEM "../../../../modules/development/test/canoo/lenya_webtest.dtd"> |
| |
| <project name="sitemanagement" basedir="." default="main"> |
| |
| <import file="../../../../modules/development/test/canoo/macros.xml"/> |
| |
| <target name="main"> |
| <antcall target="sitemanagement.delete"> |
| <param name="webtest.config.basepath" value="default"/> |
| </antcall> |
| </target> |
| |
| <target name="sitemanagement.delete"> |
| <property name="number" value="1"/> |
| <webtest name="sitemanagement.delete"> |
| &doConfig; |
| <steps> |
| <doLogin username="lenya" password="levi" url="authoring/index.html"/> |
| <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> |
| <doLogout/> |
| </steps> |
| </webtest> |
| </target> |
| </project> |