Author: husted
Date: Fri Dec  2 20:03:26 2005
New Revision: 351883

URL: http://svn.apache.org/viewcvs?rev=351883&view=rev
Log:
WebTest.xml
* Add test against duplicate subscription hosts. 
* Include reference to use case step in test descriptions. 
* Include remaining tests as TODOs


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

Modified: 
struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/profile-open.xml
URL: 
http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/profile-open.xml?rev=351883&r1=351882&r2=351883&view=diff
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/profile-open.xml 
(original)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/profile-open.xml 
Fri Dec  2 20:03:26 2005
@@ -1,6 +1,3 @@
 <clickLink
         description="Click Edit Profile"
         label="${mainMenu.registration}" />
-<verifyTitle
-    description="Edit registration title"
-    text="${registration.title.edit}" />

Added: 
struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add-page.xml
URL: 
http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add-page.xml?rev=351883&view=auto
==============================================================================
--- 
struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add-page.xml
 (added)
+++ 
struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add-page.xml
 Fri Dec  2 20:03:26 2005
@@ -0,0 +1,3 @@
+<verifyTitle
+    description="Add Subscription title"
+    text="${subscription.title.create}" />

Added: 
struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add.xml
URL: 
http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add.xml?rev=351883&view=auto
==============================================================================
--- 
struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add.xml 
(added)
+++ 
struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add.xml 
Fri Dec  2 20:03:26 2005
@@ -0,0 +1,27 @@
+&logon-hermes;
+&profile-open;
+<clickLink
+    description="Click Add"
+    label="${registration.addSubscription}" />
+&subscription-add-page;
+<setInputField
+    description="Mail Server"
+    name="host"
+    value="mail.agoraware.com" />
+<setInputField
+    description="Mail Username"
+    name="username"
+    value="hermes" />
+<setInputField
+    description="Mail Password"
+    name="password"
+    value="Ar14Dn3" />
+<setSelectField
+    description="Server Type"
+    name="type"
+    value="imap" />
+<setCheckbox
+    description="Auto connect"
+    name="autoConnect"
+    checked="true" />
+&save-click;

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=351883&r1=351882&r2=351883&view=diff
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml (original)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml Fri Dec  2 
20:03:26 2005
@@ -12,6 +12,8 @@
         <!ENTITY register-open SYSTEM "file:./entities/register-open.xml">
         <!ENTITY register-page SYSTEM "file:./entities/register-page.xml">
         <!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 welcome-click SYSTEM "file:./entities/welcome-click.xml">
         <!ENTITY welcome-open SYSTEM "file:./entities/welcome-open.xml">
 ]>
@@ -113,9 +115,11 @@
        </classpath>
     </taskdef>
 
-    <target name="default" depends="Browse,Logon" />
+    <target name="default" description="Can be run anytime"
+            depends="Browse,Logon" />
 
-    <target name="clean" depends="Browse,Register,Logon" />
+    <target name="clean" description="Only run against a clean database"
+            depends="Browse,Register,Logon,Maintain" />
 
     <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,7 +131,7 @@
             description=" Visitors can browse the Welcome, Login, and Register
             pages (only) without presenting credentials.">
 
-        <webtest name="Browse public pages">
+        <webtest name="Browse public pages (MSS)">
         &config;
            <steps>
                &register-open;
@@ -140,7 +144,7 @@
            </steps>
         </webtest>
 
-        <webtest name="Browse non-public pages (and fail)">
+        <webtest name="Browse non-public pages (and fail) (5a)">
         &config;
            <steps>
                <invoke
@@ -159,11 +163,16 @@
         </webtest>
     </target>
 
+    <target name="Configure"
+            description = " Visitors can select a supported language and 
browse the site in that language.">
+        <!-- TODO: -->
+    </target>
+
     <target name="Register"
             description = "Subscribers can store login credentials and a
             primary email contact with the system.">
 
-        <webtest name="Register Hermes">
+        <webtest name="Register Hermes (MSS)">
         &config;
            <steps>
                &register-open;
@@ -174,13 +183,21 @@
            </steps>
         </webtest>
 
+        <webtest name="Verify data-entry (1a-5a)">
+            &config;
+            <steps>
+                <!-- TODO: -->
+                <sleep description="Dummy step" millis="1"/>
+            </steps>
+        </webtest>
+
     </target>
 
     <target name="Logon"
         description="Subscribers can present their registration credentials to
         use an account again.">
 
-        <webtest name="Open logon action">
+        <webtest name="Open logon action (MSS)">
         &config;
            <steps>
                &logon-open;
@@ -199,14 +216,14 @@
             </steps>
         </webtest>
 
-        <webtest name="Open logon action">
+        <webtest name="Open logon action (MSS)">
         &config;
            <steps>
                &logon-hermes;
             </steps>
         </webtest>
 
-        <webtest name="Logon - Wrong password">
+        <webtest name="Logon - Wrong password (1c)">
         &config;
            <steps>
                &logon-open;
@@ -222,7 +239,7 @@
             </steps>
         </webtest>
 
-        <webtest name="Logon - No Account">
+        <webtest name="Logon - No Account (1a)">
         &config;
            <steps>
                &logon-open;
@@ -242,38 +259,46 @@
 
     <target name="Maintain"
             description="Subscribers can maintain a set of email subscriptions 
for an account.">
-        <webtest name="Add subscription">
+        <webtest name="Add subscription (MSS)">
+            &config;
+            <steps>
+                &subscription-add;
+                &profile-page;
+            </steps>
+        </webtest>
+        <!-- FIXME: throws Runtime error, "Illegal argument"
+        <webtest name="Add duplicate host (3c)">
+            &config;
+            <steps>
+                &subscription-add;
+                &subscription-add-page;
+                <verifyText
+                    description="Validation Error"
+                    text="${errors.header}" />
+            </steps>
+        </webtest>
+        -->
+        <webtest name="Edit subscription (3a)">
+            &config;
+            <steps>
+                <!-- TODO: -->
+                <sleep description="Dummy step" millis="1"/>
+            </steps>
+        </webtest>
+
+        <webtest name="Delete subscription (3b)">
+            &config;
+            <steps>
+                <!-- TODO: -->
+                <sleep description="Dummy step" millis="1"/>
+            </steps>
+        </webtest>
+
+        <webtest name="Verify data-entry (5a)">
             &config;
             <steps>
-                &logon-hermes;
-                &profile-open;
-                <clickLink
-                    description="Click Add"
-                    label="${registration.addSubscription}" />
-                <verifyTitle
-                    description="Add Subscription title"
-                    text="${subscription.title.create}" />
-                <setInputField
-                    description="Mail Server"
-                    name="host"
-                    value="mail.agoraware.com" />
-                <setInputField
-                    description="Mail Username"
-                    name="username"
-                    value="hermes" />
-                <setInputField
-                    description="Mail Password"
-                    name="password"
-                    value="Ar14Dn3" />
-                <setSelectField
-                    description="Server Type"
-                    name="type"
-                    value="imap" />
-                <setCheckbox
-                    description="Auto connect"
-                    name="autoConnect"
-                    checked="true" />
-                &save-click;
+                <!-- TODO: -->
+                <sleep description="Dummy step" millis="1"/>
             </steps>
         </webtest>
     </target>



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

Reply via email to