You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2005/12/06 17:30:21 UTC

svn commit: r354463 - in /struts/apps/trunk/mailreader/src/webapp/WEB-INF: entities/profile-page.xml entities/subscription-invalid.xml webtest.xml

Author: husted
Date: Tue Dec  6 08:30:18 2005
New Revision: 354463

URL: http://svn.apache.org/viewcvs?rev=354463&view=rev
Log:
webtest
* Add Verify test for validation. 
** Need to improve domain validation to disallow a "blank" host name.

Added:
    struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/profile-page.xml
    struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-invalid.xml
Modified:
    struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml

Added: struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/profile-page.xml
URL: http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/profile-page.xml?rev=354463&view=auto
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/profile-page.xml (added)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/profile-page.xml Tue Dec  6 08:30:18 2005
@@ -0,0 +1,3 @@
+<verifyTitle
+    description="Edit registration title"
+    text="${registration.title.edit}" />

Added: struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-invalid.xml
URL: http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-invalid.xml?rev=354463&view=auto
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-invalid.xml (added)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-invalid.xml Tue Dec  6 08:30:18 2005
@@ -0,0 +1,28 @@
+&logon-hermes;
+&profile-open;
+<clickLink
+    description="Click Add"
+    label="${registration.addSubscription}" />
+&subscription-add-page;
+&save-click;
+<verifyText
+    description="Validation Error on saving with no input"
+    text="${errors.header}" />
+<setInputField
+    description="Mail Server"
+    name="host"
+    value="  " />
+<setInputField
+    description="Mail Username"
+    name="username"
+    value="  " />
+<setInputField
+    description="Mail Password"
+    name="password"
+    value="  " />
+<!-- FIXME: Allows blanks for host and other fields
+&save-click;
+<verifyText
+    description="Validation Error on saving with spaces"
+    text="${errors.header}" />
+-->
\ No newline at end of file

Modified: struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml
URL: http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml?rev=354463&r1=354462&r2=354463&view=diff
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml (original)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml Tue Dec  6 08:30:18 2005
@@ -14,6 +14,7 @@
         <!ENTITY save-click SYSTEM "file:./entities/save-click.xml">
         <!ENTITY subscription-add SYSTEM "file:./entities/subscription-add.xml">
         <!ENTITY subscription-add-page SYSTEM "file:./entities/subscription-add-page.xml">
+        <!ENTITY subscription-invalid SYSTEM "file:./entities/subscription-invalid.xml">
         <!ENTITY welcome-click SYSTEM "file:./entities/welcome-click.xml">
         <!ENTITY welcome-open SYSTEM "file:./entities/welcome-open.xml">
 ]>
@@ -115,11 +116,8 @@
        </classpath>
     </taskdef>
 
-    <target name="default" description="Can be run anytime"
-            depends="Browse,Logon" />
-
     <target name="clean" description="Only run against a clean database"
-            depends="Browse,Register,Logon,Maintain" />
+            depends="Browse,Register,Logon,Maintain,Verify" />
 
     <target name="clean-database" description="Sets database.xml to default. Stop server, run target, and Start server.">
          <copy file="${mailreader.home}/src/webapp/WEB-INF/database.xml"
@@ -127,6 +125,9 @@
                overwrite="true" />
     </target>
 
+    <target name="default" description="Can be run anytime"
+            depends="Browse,Logon" />
+
     <target name="Browse"
             description=" Visitors can browse the Welcome, Login, and Register
             pages (only) without presenting credentials.">
@@ -294,13 +295,18 @@
             </steps>
         </webtest>
 
-        <webtest name="Verify data-entry (5a)">
-            &config;
-            <steps>
-                <!-- TODO: -->
-                <sleep description="Dummy step" millis="1"/>
-            </steps>
-        </webtest>
+    </target>
+
+    <target name="Verify"
+            description="Subscribers can maintain a set of email subscriptions for an account.">
+
+    <webtest name="Verify data-entry (5a)">
+        &config;
+        <steps>
+            &subscription-invalid;
+        </steps>
+    </webtest>
+
     </target>
 
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org