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 18:39:16 UTC

svn commit: r354479 - in /struts/apps/trunk/mailreader/src/webapp/WEB-INF: entities/logon-hermes.xml entities/save-click.xml entities/subscription-add.xml entities/subscription-edit.xml webtest.xml

Author: husted
Date: Tue Dec  6 09:39:10 2005
New Revision: 354479

URL: http://svn.apache.org/viewcvs?rev=354479&view=rev
Log:
WebTest
* Add edit and delete tests to finish first blush of suite. 

Added:
    struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/logon-hermes.xml
    struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/save-click.xml
    struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-edit.xml
Modified:
    struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add.xml
    struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml

Added: struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/logon-hermes.xml
URL: http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/logon-hermes.xml?rev=354479&view=auto
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/logon-hermes.xml (added)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/logon-hermes.xml Tue Dec  6 09:39:10 2005
@@ -0,0 +1,13 @@
+&logon-open;
+<setInputField
+  description="Registered username"
+  name="username"
+  value="hermes" />
+<setInputField
+  description="Correct password"
+  name="password"
+  value="m3dus4" />
+<clickButton
+  description="Submit"
+  name="Submit"/>
+&menu-page;
\ No newline at end of file

Added: struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/save-click.xml
URL: http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/save-click.xml?rev=354479&view=auto
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/save-click.xml (added)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/save-click.xml Tue Dec  6 09:39:10 2005
@@ -0,0 +1,3 @@
+<clickButton
+    description="Save"
+    name="${button.doSubmit}"/>

Modified: 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=354479&r1=354478&r2=354479&view=diff
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add.xml (original)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-add.xml Tue Dec  6 09:39:10 2005
@@ -25,3 +25,4 @@
     name="autoConnect"
     checked="true" />
 &save-click;
+&profile-page;

Added: struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-edit.xml
URL: http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-edit.xml?rev=354479&view=auto
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-edit.xml (added)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/subscription-edit.xml Tue Dec  6 09:39:10 2005
@@ -0,0 +1,14 @@
+&logon-hermes;
+&profile-open;
+<clickLink
+    description="Click Edit"
+    label="${registration.editSubscription}" />
+<verifyTitle
+    description="Edit Subscription title"
+    text="${subscription.title.edit}" />
+<setInputField
+    description="Change Mail Password"
+    name="password"
+    value="Fl0r1d4" />
+&save-click;
+&profile-page;

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=354479&r1=354478&r2=354479&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 09:39:10 2005
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE project SYSTEM "entities/WebTest.dtd" [
         <!ENTITY taskdef-webtest SYSTEM "entities/taskdef.xml">
-        <!ENTITY config SYSTEM "entities/config-debug.xml">
+        <!ENTITY config SYSTEM "entities/config.xml">
         <!ENTITY logon-fail SYSTEM "file:./entities/logon-fail.xml">
         <!ENTITY logon-hermes SYSTEM "file:./entities/logon-hermes.xml">
         <!ENTITY logon-open SYSTEM "file:./entities/logon-open.xml">
@@ -14,6 +14,8 @@
         <!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-delete SYSTEM "file:./entities/subscription-delete.xml">
+        <!ENTITY subscription-edit SYSTEM "file:./entities/subscription-edit.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">
@@ -282,16 +284,14 @@
         <webtest name="Edit subscription (3a)">
             &config;
             <steps>
-                <!-- TODO: -->
-                <sleep description="Dummy step" millis="1"/>
+                &subscription-edit;
             </steps>
         </webtest>
 
         <webtest name="Delete subscription (3b)">
             &config;
             <steps>
-                <!-- TODO: -->
-                <sleep description="Dummy step" millis="1"/>
+                &subscription-delete;
             </steps>
         </webtest>
 
@@ -300,12 +300,12 @@
     <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>
+        <webtest name="Verify data-entry (5a)">
+            &config;
+            <steps>
+                &subscription-invalid;
+            </steps>
+        </webtest>
 
     </target>
 



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