svn commit: r588753 - in /lenya/trunk/src/modules/development/test/canoo: doconfig.xml lenya_webtest.dtd macros.xml

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: rfrovarp
Date: Fri Oct 26 12:14:35 2007
New Revision: 588753

URL: http://svn.apache.org/viewvc?rev=588753&view=rev
Log:
I missed the added files. Sorry.

Added:
    lenya/trunk/src/modules/development/test/canoo/doconfig.xml
    lenya/trunk/src/modules/development/test/canoo/lenya_webtest.dtd
    lenya/trunk/src/modules/development/test/canoo/macros.xml

Added: lenya/trunk/src/modules/development/test/canoo/doconfig.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/development/test/canoo/doconfig.xml?rev=588753&view=auto
==============================================================================
--- lenya/trunk/src/modules/development/test/canoo/doconfig.xml (added)
+++ lenya/trunk/src/modules/development/test/canoo/doconfig.xml Fri Oct 26 12:14:35 2007
@@ -0,0 +1,50 @@
+<?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.
+-->
+
+<config host="${webtest.config.host}"
+        port="${webtest.config.port}"
+        protocol="http"
+        basepath="${webtest.config.basepath}">
+  <header name="Accept-Language" value="en"/>
+  <option name="JavaScriptEnabled" value="false"/>
+</config>
+<?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.
+-->
+
+<config host="${webtest.config.host}"
+        port="${webtest.config.port}"
+        protocol="http"
+        basepath="${webtest.config.basepath}">
+  <header name="Accept-Language" value="en"/>
+  <option name="JavaScriptEnabled" value="false"/>
+</config>

Added: lenya/trunk/src/modules/development/test/canoo/lenya_webtest.dtd
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/development/test/canoo/lenya_webtest.dtd?rev=588753&view=auto
==============================================================================
--- lenya/trunk/src/modules/development/test/canoo/lenya_webtest.dtd (added)
+++ lenya/trunk/src/modules/development/test/canoo/lenya_webtest.dtd Fri Oct 26 12:14:35 2007
@@ -0,0 +1,36 @@
+<!--
+  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.
+-->
+
+<!ENTITY doConfig SYSTEM "doconfig.xml">
+<!--
+  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.
+-->
+
+<!ENTITY doConfig SYSTEM "doconfig.xml">

Added: lenya/trunk/src/modules/development/test/canoo/macros.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/development/test/canoo/macros.xml?rev=588753&view=auto
==============================================================================
--- lenya/trunk/src/modules/development/test/canoo/macros.xml (added)
+++ lenya/trunk/src/modules/development/test/canoo/macros.xml Fri Oct 26 12:14:35 2007
@@ -0,0 +1,128 @@
+<?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="lenya_webtest_macros">
+
+  <import file="${webtest.home}/lib/taskdef.xml"/>
+
+  <macrodef name="doLogin" description="perform a login to Lenya">
+    <attribute name="username"/>
+    <attribute name="password"/>
+    <attribute name="url" default="index.html"/>
+    <sequential>
+
+      <!-- login -->
+      <invoke url="@{url}"/>
+      <ifStep description="login if we are asked for">
+        <condition>
+          <verifyTitle text="Login to the Default Publication" />
+        </condition>
+        <setInputField name="username" value="@{username}"/>
+        <setInputField name="password" value="@{password}"/>
+        <clickButton name="submit"/>
+      </ifStep>
+
+      <!-- import example content -->
+      <ifStep description="import example content">
+        <condition>
+          <verifyText text="export.importExampleContent" />
+        </condition>
+        <selectForm name="import"/>
+        <clickButton name="submit"/>
+      </ifStep>
+
+      <verifyText text="Welcome"/>
+    </sequential>
+  </macrodef>
+
+  <macrodef name="doLogout" description="logout from Lenya">
+    <attribute name="url" default=""/>
+    <sequential>
+
+      <!-- logout -->
+      <invoke url="@{url}?lenya.usecase=ac.logout"/>
+      <clickButton name="submit"/>
+
+    </sequential>
+  </macrodef>
+
+</project>
+<?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="lenya_webtest_macros">
+
+  <import file="${webtest.home}/lib/taskdef.xml"/>
+
+  <macrodef name="doLogin" description="perform a login to Lenya">
+    <attribute name="username"/>
+    <attribute name="password"/>
+    <attribute name="url" default="index.html"/>
+    <sequential>
+
+      <!-- login -->
+      <invoke url="@{url}"/>
+      <ifStep description="login if we are asked for">
+        <condition>
+          <verifyTitle text="Login to the Default Publication" />
+        </condition>
+        <setInputField name="username" value="@{username}"/>
+        <setInputField name="password" value="@{password}"/>
+        <clickButton name="submit"/>
+      </ifStep>
+
+      <!-- import example content -->
+      <ifStep description="import example content">
+        <condition>
+          <verifyText text="export.importExampleContent" />
+        </condition>
+        <selectForm name="import"/>
+        <clickButton name="submit"/>
+      </ifStep>
+
+      <verifyText text="Welcome"/>
+    </sequential>
+  </macrodef>
+
+  <macrodef name="doLogout" description="logout from Lenya">
+    <attribute name="url" default=""/>
+    <sequential>
+
+      <!-- logout -->
+      <invoke url="@{url}?lenya.usecase=ac.logout"/>
+      <clickButton name="submit"/>
+
+    </sequential>
+  </macrodef>
+
+</project>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.