Author: husted
Date: Fri Apr  7 06:24:25 2006
New Revision: 392286

URL: http://svn.apache.org/viewcvs?rev=392286&view=rev
Log:
MailReader Course
* Lab 2.2 
** Add a "webtest-start.xml" file that people can rename to webtest.xml and 
extend. 
** Add the usual webtest.properties.sample file.


Added:
    
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest-start.xml
   (with props)
    
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.properties.sample
    
struts/sandbox/trunk/mailreader-course/action2/lab-2-3/src/webapp/WEB-INF/webtest.properties.sample
    
struts/sandbox/trunk/mailreader-course/action2/lab-3-1/src/webapp/WEB-INF/webtest.properties.sample
Modified:
    
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.xml
    
struts/sandbox/trunk/mailreader-course/action2/lab-2-3/src/webapp/WEB-INF/webtest.xml
    
struts/sandbox/trunk/mailreader-course/action2/lab-3-1/src/webapp/WEB-INF/webtest.xml
    struts/sandbox/trunk/mailreader-course/action2/mailreader-course-action2.ipr

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest-start.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest-start.xml?rev=392286&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest-start.xml
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest-start.xml
 Fri Apr  7 06:24:25 2006
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+<!DOCTYPE project SYSTEM "entities/WebTest.dtd" [
+
+        <!ENTITY taskdef-webtest SYSTEM "entities/taskdef.xml">
+        <!ENTITY config SYSTEM "entities/config.xml">
+
+        <!ENTITY register-open SYSTEM "file:./entities/register-open.xml">
+        <!ENTITY register-page SYSTEM "file:./entities/register-page.xml">
+        <!ENTITY register-trillian SYSTEM 
"file:./entities/register-trillian.xml">
+
+        <!ENTITY save-click SYSTEM "file:./entities/save-click.xml">
+
+        <!ENTITY welcome-open SYSTEM "file:./entities/welcome-open.xml">
+
+        ]>
+
+<project name="MailReader Training Course - Exercise navigation and database 
logic
+- Canoo WebTests" basedir="." >
+
+    <!--
+     Canoo WebTest configuration file to test navigating between pages and
+     creating and editing an account.
+
+     To run this test, first install the Canoo Webtest package on your
+     local system [http://webtest.canoo.com].
+
+     The default location for this build file is under
+     "/opt/Canoo/webtest-1.7".
+     See the webtest.properties.sample to use another location.
+
+     Once Canoo is installed, the webtest.xml file can be run as an Ant build
+     file (ant -f webtest.xml).
+
+     By default, the tests are configured to find the application under test
+      at "http://localhost:8080/lib-2-2";.
+     See the webtest.properties.sample to use another location.
+
+     Deploy the application to your container, and use Ant to run the
+     webtest.xml.
+
+     The "clean" target can be run to test everything, but will fail if run 
again,
+     since the test-user will already be registered.
+     The "default" target skips registeration and can be run as often as needed
+     after "clean" is run once.
+
+     To reset the XML "database", either redeploy the application so that the
+     WEB-INF/classes/database.xml is overwritten,
+     or use the "clean-database" target to overwrite the file.
+     Only use "clean-database" when the server  is stopped,
+     and then start it again before running other targets.
+
+     The tests are based on a set of MailReader Use Cases maintained at the
+     Struts University site
+     
[http://opensource2.atlassian.com/confluence/oss/display/STRUTS/MailReader].
+
+     */
+    -->
+
+    <property name="webtest.home"
+              location="/opt/Canoo/webtest-1.7"/>
+
+    <property name="host"
+              value="localhost"/>
+
+    <property name="port"
+              value="8080"/>
+
+    <property name="basepath"
+              value="lab-2-2"/>
+
+    <property name="mailreader.home"
+              location="../../../"/>
+
+    <property name="webapps.home"
+              location="/opt/Apache/Tomcat-5.5/webapps"/>
+
+    <property name="resource.home"
+              
location="${webapps.home}/${basepath}/WEB-INF/classes/resources.properties"/>
+
+    <property file="${resource.home}"/>
+
+
+    <taskdef file="${webtest.home}/webtestTaskdefs.properties">
+        <classpath>
+            <fileset dir="${webtest.home}" includes="**/lib/*.jar"/>
+            <fileset dir="${webtest.home}" includes="**/lib/runtime/*.jar"/>
+        </classpath>
+    </taskdef>
+
+    <target name="clean-database"
+            description="Sets database.xml to default. Stop server, run 
target, and Start server.">
+        <copy file="${mailreader.home}/src/java/database.xml"
+              tofile="${webapps.home}/${basepath}/WEB-INF/classes/database.xml"
+              overwrite="true"/>
+    </target>
+
+
+    <!-- ADD YOUR TARGETS HERE -->
+
+
+</project>

Propchange: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest-start.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.properties.sample
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.properties.sample?rev=392286&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.properties.sample
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.properties.sample
 Fri Apr  7 06:24:25 2006
@@ -0,0 +1,15 @@
+# -----------------------------------------------------------------------------
+# webtest.properties.sample
+#
+# This is an example "webtest.properties" file, used to customize building 
Struts
+# for your local environment.  Make any changes you need, and rename this file
+# to "webtest.properties" in the same directory that contains the Struts
+# "webtest.xml" file.
+# -----------------------------------------------------------------------------
+webtest.home = /opt/Canoo/webtest-1.7
+host = localhost
+port = 8080
+basepath = lab-2-2
+webapps.home = /opt/Apache/Tomcat-5.5/webapps/
+resource.home = 
${webapps.home}/${basepath}/WEB-INF/classes/resources.properties"
+# mailreader.home = 

Modified: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.xml?rev=392286&r1=392285&r2=392286&view=diff
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.xml
 (original)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.xml
 Fri Apr  7 06:24:25 2006
@@ -15,7 +15,7 @@
         ]>
 
 <project name="MailReader Training Course - Exercise navigation and database 
logic
-- Canoo WebTests" basedir="." default="Register">
+- Canoo WebTests" basedir="." default="clean">
 
     <!--
      Canoo WebTest configuration file to test navigating between pages and
@@ -58,12 +58,12 @@
     -->
 
     <!-- Load local preferences, if any -->
-    <!-- property file="webtest.properties"/ -->
+    <property file="webtest.properties" />
 
     <!-- These properties can be customized using via webtest.properties -->
     <!-- See webtest.properties.sample for a starter file -->
     <property name="webtest.home"
-              location="C:/opt/Canoo/webtest-1.7"/>
+              location="/opt/Canoo/webtest-1.7"/>
 
     <property name="host"
               value="localhost"/>
@@ -75,19 +75,16 @@
               value="lab-2-2"/>
 
     <property name="mailreader.home"
-              location=""/>
+              location="../../../"/>
 
     <property name="webapps.home"
-              location="C:/opt/Apache/Tomcat-5.0/webapps/"/>
-
-    <!-- Load application resources
+              location="/opt/Apache/Tomcat-5.5/webapps"/>
 
     <property name="resource.home"
-              
location="${mailreader.home}/src/java/org/apache/struts/apps/mailreader/resources/ApplicationResources.properties"/>
+              
location="${webapps.home}/${basepath}/WEB-INF/classes/resources.properties"/>
 
     <property file="${resource.home}"/>
 
-    -->
 
     <taskdef file="${webtest.home}/webtestTaskdefs.properties">
         <classpath>
@@ -96,9 +93,6 @@
         </classpath>
     </taskdef>
 
-    <target name="clean" description="Only run against a clean database"
-            depends="Register"/>
-
     <target name="clean-database"
             description="Sets database.xml to default. Stop server, run 
target, and Start server.">
         <copy file="${mailreader.home}/src/java/database.xml"
@@ -108,6 +102,9 @@
 
     <!-- ADD YOUR TARGETS HERE -->
 
+    <target name="clean" description="Only run against a clean database"
+            depends="Register"/>
+
     <target name="Register"
             description="Subscribers can store login credentials and a
             primary email contact with the system.">
@@ -116,10 +113,30 @@
             &config;
             <steps>
                 &register-open;
-                &register-trillian;
+                <setInputField
+                    description="username"
+                    name="username"
+                    value="trillian"/>
+                <setInputField
+                    description="password"
+                    name="password"
+                    value="astra"/>
+                <setInputField
+                    description="password2"
+                    name="password2"
+                    value="astra"/>
+                <setInputField
+                  description="fullName"
+                    name="fullName"
+                    value="Tricia McMillian"/>
+                <setInputField
+                    description="fromAddress"
+                    name="fromAddress"
+                    value="[EMAIL PROTECTED]"/>
+                &save-click;
                 <verifyTitle
-                        description="Menu page title"
-                        text="MailReader - Menu"/>
+                    description="Menu page title"
+                      text="MailReader - Menu"/>
             </steps>
         </webtest>
 

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-3/src/webapp/WEB-INF/webtest.properties.sample
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-3/src/webapp/WEB-INF/webtest.properties.sample?rev=392286&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-3/src/webapp/WEB-INF/webtest.properties.sample
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-3/src/webapp/WEB-INF/webtest.properties.sample
 Fri Apr  7 06:24:25 2006
@@ -0,0 +1,15 @@
+# -----------------------------------------------------------------------------
+# webtest.properties.sample
+#
+# This is an example "webtest.properties" file, used to customize building 
Struts
+# for your local environment.  Make any changes you need, and rename this file
+# to "webtest.properties" in the same directory that contains the Struts
+# "webtest.xml" file.
+# -----------------------------------------------------------------------------
+webtest.home = /opt/Canoo/webtest-1.7
+host = localhost
+port = 8080
+basepath = lab-2-2
+webapps.home = /opt/Apache/Tomcat-5.5/webapps/
+resource.home = 
${webapps.home}/${basepath}/WEB-INF/classes/resources.properties"
+# mailreader.home = 

Modified: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-3/src/webapp/WEB-INF/webtest.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-3/src/webapp/WEB-INF/webtest.xml?rev=392286&r1=392285&r2=392286&view=diff
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-3/src/webapp/WEB-INF/webtest.xml
 (original)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-3/src/webapp/WEB-INF/webtest.xml
 Fri Apr  7 06:24:25 2006
@@ -15,7 +15,7 @@
         ]>
 
 <project name="MailReader Training Course - Exercise navigation and database 
logic
-- Canoo WebTests" basedir="." default="Register">
+- Canoo WebTests" basedir="." default="clean">
 
     <!--
      Canoo WebTest configuration file to test navigating between pages and
@@ -58,12 +58,12 @@
     -->
 
     <!-- Load local preferences, if any -->
-    <!-- property file="webtest.properties"/ -->
+    <property file="webtest.properties" />
 
     <!-- These properties can be customized using via webtest.properties -->
     <!-- See webtest.properties.sample for a starter file -->
     <property name="webtest.home"
-              location="C:/opt/Canoo/webtest-1.7"/>
+              location="/opt/Canoo/webtest-1.7"/>
 
     <property name="host"
               value="localhost"/>
@@ -75,19 +75,16 @@
               value="lab-2-2"/>
 
     <property name="mailreader.home"
-              location=""/>
+              location="../../../"/>
 
     <property name="webapps.home"
-              location="C:/opt/Apache/Tomcat-5.0/webapps/"/>
-
-    <!-- Load application resources
+              location="/opt/Apache/Tomcat-5.5/webapps"/>
 
     <property name="resource.home"
-              
location="${mailreader.home}/src/java/org/apache/struts/apps/mailreader/resources/ApplicationResources.properties"/>
+              
location="${webapps.home}/${basepath}/WEB-INF/classes/resources.properties"/>
 
     <property file="${resource.home}"/>
 
-    -->
 
     <taskdef file="${webtest.home}/webtestTaskdefs.properties">
         <classpath>
@@ -96,9 +93,6 @@
         </classpath>
     </taskdef>
 
-    <target name="clean" description="Only run against a clean database"
-            depends="Register"/>
-
     <target name="clean-database"
             description="Sets database.xml to default. Stop server, run 
target, and Start server.">
         <copy file="${mailreader.home}/src/java/database.xml"
@@ -108,6 +102,9 @@
 
     <!-- ADD YOUR TARGETS HERE -->
 
+    <target name="clean" description="Only run against a clean database"
+            depends="Register"/>
+
     <target name="Register"
             description="Subscribers can store login credentials and a
             primary email contact with the system.">
@@ -118,8 +115,8 @@
                 &register-open;
                 &register-trillian;
                 <verifyTitle
-                        description="Menu page title"
-                        text="MailReader - Menu"/>
+                    description="Menu page title"
+                      text="MailReader - Menu"/>
             </steps>
         </webtest>
 

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-3-1/src/webapp/WEB-INF/webtest.properties.sample
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-3-1/src/webapp/WEB-INF/webtest.properties.sample?rev=392286&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-3-1/src/webapp/WEB-INF/webtest.properties.sample
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-3-1/src/webapp/WEB-INF/webtest.properties.sample
 Fri Apr  7 06:24:25 2006
@@ -0,0 +1,15 @@
+# -----------------------------------------------------------------------------
+# webtest.properties.sample
+#
+# This is an example "webtest.properties" file, used to customize building 
Struts
+# for your local environment.  Make any changes you need, and rename this file
+# to "webtest.properties" in the same directory that contains the Struts
+# "webtest.xml" file.
+# -----------------------------------------------------------------------------
+webtest.home = /opt/Canoo/webtest-1.7
+host = localhost
+port = 8080
+basepath = lab-2-2
+webapps.home = /opt/Apache/Tomcat-5.5/webapps/
+resource.home = 
${webapps.home}/${basepath}/WEB-INF/classes/resources.properties"
+# mailreader.home = 

Modified: 
struts/sandbox/trunk/mailreader-course/action2/lab-3-1/src/webapp/WEB-INF/webtest.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-3-1/src/webapp/WEB-INF/webtest.xml?rev=392286&r1=392285&r2=392286&view=diff
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-3-1/src/webapp/WEB-INF/webtest.xml
 (original)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-3-1/src/webapp/WEB-INF/webtest.xml
 Fri Apr  7 06:24:25 2006
@@ -15,7 +15,7 @@
         ]>
 
 <project name="MailReader Training Course - Exercise navigation and database 
logic
-- Canoo WebTests" basedir="." default="Register">
+- Canoo WebTests" basedir="." default="clean">
 
     <!--
      Canoo WebTest configuration file to test navigating between pages and
@@ -58,12 +58,12 @@
     -->
 
     <!-- Load local preferences, if any -->
-    <!-- property file="webtest.properties"/ -->
+    <property file="webtest.properties" />
 
     <!-- These properties can be customized using via webtest.properties -->
     <!-- See webtest.properties.sample for a starter file -->
     <property name="webtest.home"
-              location="C:/opt/Canoo/webtest-1.7"/>
+              location="/opt/Canoo/webtest-1.7"/>
 
     <property name="host"
               value="localhost"/>
@@ -75,19 +75,16 @@
               value="lab-2-2"/>
 
     <property name="mailreader.home"
-              location=""/>
+              location="../../../"/>
 
     <property name="webapps.home"
-              location="C:/opt/Apache/Tomcat-5.0/webapps/"/>
-
-    <!-- Load application resources
+              location="/opt/Apache/Tomcat-5.5/webapps"/>
 
     <property name="resource.home"
-              
location="${mailreader.home}/src/java/org/apache/struts/apps/mailreader/resources/ApplicationResources.properties"/>
+              
location="${webapps.home}/${basepath}/WEB-INF/classes/resources.properties"/>
 
     <property file="${resource.home}"/>
 
-    -->
 
     <taskdef file="${webtest.home}/webtestTaskdefs.properties">
         <classpath>
@@ -96,9 +93,6 @@
         </classpath>
     </taskdef>
 
-    <target name="clean" description="Only run against a clean database"
-            depends="Register"/>
-
     <target name="clean-database"
             description="Sets database.xml to default. Stop server, run 
target, and Start server.">
         <copy file="${mailreader.home}/src/java/database.xml"
@@ -108,6 +102,9 @@
 
     <!-- ADD YOUR TARGETS HERE -->
 
+    <target name="clean" description="Only run against a clean database"
+            depends="Register"/>
+
     <target name="Register"
             description="Subscribers can store login credentials and a
             primary email contact with the system.">
@@ -118,8 +115,8 @@
                 &register-open;
                 &register-trillian;
                 <verifyTitle
-                        description="Menu page title"
-                        text="MailReader - Menu"/>
+                    description="Menu page title"
+                      text="MailReader - Menu"/>
             </steps>
         </webtest>
 

Modified: 
struts/sandbox/trunk/mailreader-course/action2/mailreader-course-action2.ipr
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/mailreader-course-action2.ipr?rev=392286&r1=392285&r2=392286&view=diff
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/mailreader-course-action2.ipr 
(original)
+++ 
struts/sandbox/trunk/mailreader-course/action2/mailreader-course-action2.ipr 
Fri Apr  7 06:24:25 2006
@@ -2,6 +2,13 @@
 <project version="4" relativePaths="false">
   <component name="AntConfiguration">
     <defaultAnt bundledAnt="true" />
+    <buildFile 
url="file://$PROJECT_DIR$/lab-2-2/src/webapp/WEB-INF/webtest.xml">
+      <additionalClassPath />
+      <antReference projectDefault="true" />
+      <customJdkName value="" />
+      <maximumHeapSize value="128" />
+      <properties />
+    </buildFile>
   </component>
   <component name="CodeStyleSettingsManager">
     <option name="PER_PROJECT_SETTINGS" />
@@ -186,6 +193,7 @@
       <module fileurl="file://$PROJECT_DIR$/lab-2-2/lab-2-2.iml" 
filepath="$PROJECT_DIR$/lab-2-2/lab-2-2.iml" />
       <module fileurl="file://$PROJECT_DIR$/lab-2-3/lab-2-3.iml" 
filepath="$PROJECT_DIR$/lab-2-3/lab-2-3.iml" />
       <module fileurl="file://$PROJECT_DIR$/lab-3-1/lab-3-1.iml" 
filepath="$PROJECT_DIR$/lab-3-1/lab-3-1.iml" />
+      <module fileurl="file://$PROJECT_DIR$/lab-3-2/lab-3-2.iml" 
filepath="$PROJECT_DIR$/lab-3-2/lab-3-2.iml" />
       <module fileurl="file://$PROJECT_DIR$/mailreader-course-action2.iml" 
filepath="$PROJECT_DIR$/mailreader-course-action2.iml" />
     </modules>
   </component>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to