Propchange: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/WebTest.dtd
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/config.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/config.xml?rev=392051&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/config.xml
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/config.xml
 Thu Apr  6 12:42:22 2006
@@ -0,0 +1,6 @@
+<config
+        host="${host}"
+        port="${port}"
+        basepath="${basepath}"
+        protocol="http"/>
+

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

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-open.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-open.xml?rev=392051&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-open.xml
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-open.xml
 Thu Apr  6 12:42:22 2006
@@ -0,0 +1,5 @@
+&welcome-open;
+<clickLink
+        description="Click Register"
+        label="Register with the MailReader"/>
+        &register-page;

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

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-page.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-page.xml?rev=392051&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-page.xml
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-page.xml
 Thu Apr  6 12:42:22 2006
@@ -0,0 +1,3 @@
+<verifyTitle
+        description="Registration page title"
+        text="Register"/>

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

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-trillian.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-trillian.xml?rev=392051&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-trillian.xml
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/register-trillian.xml
 Thu Apr  6 12:42:22 2006
@@ -0,0 +1,21 @@
+<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;
\ No newline at end of file

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

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/save-click.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/save-click.xml?rev=392051&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/save-click.xml
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/save-click.xml
 Thu Apr  6 12:42:22 2006
@@ -0,0 +1,3 @@
+<clickButton
+        description="Save"
+        name="Save"/>

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

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/taskdef.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/taskdef.xml?rev=392051&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/taskdef.xml
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/taskdef.xml
 Thu Apr  6 12:42:22 2006
@@ -0,0 +1,25 @@
+<?xml version="1.0" ?>
+<project name="taskdef">
+    <description>
+        This project provides following elements to use in your test scripts:
+
+        (0) all webtest's steps loaded and ready to use,
+        (1) the path "webtest.path.id" that includes all of webtest's
+        libraries,
+        (2) the class loader "webtest.loader" that is the original loader for
+        webtest.
+
+        Usage:
+        Set the property webtest.home to the directory in which the build.zip
+        is extracted,
+        and calls:
+        &lt;import file="${webtest.home}/lib/taskdef.xml" &gt;
+    </description>
+
+    <import file="${webtest.home}/lib/classpath.xml"/>
+
+    <taskdef resource="webtest.taskdef"
+             loaderref="webtest.loader"
+             classpathref="webtest.path.id"
+            />
+</project>
\ No newline at end of file

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

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/welcome-open.xml
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/welcome-open.xml?rev=392051&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/welcome-open.xml
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/entities/welcome-open.xml
 Thu Apr  6 12:42:22 2006
@@ -0,0 +1,6 @@
+<invoke
+        description="Open welcome action"
+        url="Welcome.do"/>
+<verifyTitle
+        description="Welcome page title"
+        text="MailReader Application"/>

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

Added: 
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=392051&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.xml
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/WEB-INF/webtest.xml
 Thu Apr  6 12:42:22 2006
@@ -0,0 +1,128 @@
+<?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="." default="Register">
+
+    <!--
+     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].
+
+     @version $Revision: 1.2 $ $Date: 2005-12-31 15:10:04 -0500 (Sat, 31 Dec 
2005) $
+     */
+    -->
+
+    <!-- Load local preferences, if any -->
+    <!-- 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"/>
+
+    <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="C:/opt/Apache/Tomcat-5.0/webapps/"/>
+
+    <!-- Load application resources
+
+    <property name="resource.home"
+              
location="${mailreader.home}/src/java/org/apache/struts/apps/mailreader/resources/ApplicationResources.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" 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"
+              tofile="${webapps.home}/${basepath}/WEB-INF/classes/database.xml"
+              overwrite="true"/>
+    </target>
+
+    <!-- ADD YOUR TARGETS HERE -->
+
+    <target name="Register"
+            description="Subscribers can store login credentials and a
+            primary email contact with the system.">
+
+        <webtest name="Register Trillian (MSS)">
+            &config;
+            <steps>
+                &register-open;
+                &register-trillian;
+                <verifyTitle
+                        description="Menu page title"
+                        text="Menu"/>
+            </steps>
+        </webtest>
+
+    </target>
+
+</project>

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

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/pages/Menu.jsp
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/pages/Menu.jsp?rev=392051&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/pages/Menu.jsp
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/pages/Menu.jsp
 Thu Apr  6 12:42:22 2006
@@ -0,0 +1,19 @@
+<%@ taglib uri="/webwork" prefix="ww" %>
+<html>
+<head>
+    <title>Menu</title>
+</head>
+
+<body>
+<h3>Main Menu Options for <ww:property value="fullName"/></h3>
+<ul>
+    <li><a href="<ww:url action="Registration!input" />">
+        Edit your registration profile
+    </a>
+    </li>
+    <li><a href="<ww:url action="Logoff"/>">
+        Log off MailReader
+    </a>
+</ul>
+</body>
+</html>

Propchange: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/pages/Menu.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/pages/Register.jsp
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/pages/Register.jsp?rev=392051&view=auto
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/pages/Register.jsp
 (added)
+++ 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/pages/Register.jsp
 Thu Apr  6 12:42:22 2006
@@ -0,0 +1,30 @@
+<%@ taglib uri="/webwork" prefix="ww" %>
+<html>
+<head>
+    <title>Register</title>
+</head>
+
+<body onLoad="self.focus();document.Register.username.focus()">
+
+<ww:actionerror/>
+<ww:form method="POST" validate="true">
+
+    <ww:textfield label="UserName" name="username"/>
+
+    <ww:password label="Password" name="password"/>
+
+    <ww:password label="Confirm Password" name="password2"/>
+
+    <ww:textfield label="Full Name" name="fullName"/>
+
+    <ww:textfield label="From Address" name="fromAddress"/>
+
+    <ww:textfield label="Reply To Address" name="replyToAddress"/>
+
+    <ww:submit value="Save" name="Save"/>
+
+</ww:form>
+
+
+</body>
+</html>

Propchange: 
struts/sandbox/trunk/mailreader-course/action2/lab-2-2/src/webapp/pages/Register.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

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=392051&r1=392050&r2=392051&view=diff
==============================================================================
--- 
struts/sandbox/trunk/mailreader-course/action2/mailreader-course-action2.ipr 
(original)
+++ 
struts/sandbox/trunk/mailreader-course/action2/mailreader-course-action2.ipr 
Thu Apr  6 12:42:22 2006
@@ -183,6 +183,7 @@
       <module fileurl="file://$PROJECT_DIR$/lab-1-2/lab-1-2.iml" 
filepath="$PROJECT_DIR$/lab-1-2/lab-1-2.iml" />
       <module fileurl="file://$PROJECT_DIR$/lab-1-3/lab-1-3.iml" 
filepath="$PROJECT_DIR$/lab-1-3/lab-1-3.iml" />
       <module fileurl="file://$PROJECT_DIR$/lab-2-1/lab-2-1.iml" 
filepath="$PROJECT_DIR$/lab-2-1/lab-2-1.iml" />
+      <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$/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