Author: husted
Date: Wed Nov 30 04:19:30 2005
New Revision: 349931

URL: http://svn.apache.org/viewcvs?rev=349931&view=rev
Log:
MailReader - Add WebTest entity for following link back to Welcome page.

Added:
    struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/welcome-click.xml
Modified:
    struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml

Added: 
struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/welcome-click.xml
URL: 
http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/welcome-click.xml?rev=349931&view=auto
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/welcome-click.xml 
(added)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/entities/welcome-click.xml 
Wed Nov 30 04:19:30 2005
@@ -0,0 +1,6 @@
+<clicklink
+        description="Click Welcome"
+        label="${index.title}" />
+<verifytitle
+    description="Welcome page title"
+    text="${index.title}" />

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=349931&r1=349930&r2=349931&view=diff
==============================================================================
--- struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml (original)
+++ struts/apps/trunk/mailreader/src/webapp/WEB-INF/webtest.xml Wed Nov 30 
04:19:30 2005
@@ -2,6 +2,7 @@
    <!DOCTYPE project SYSTEM "entities/WebTest.dtd" [
     <!ENTITY config SYSTEM "entities/config-debug.xml">
     <!ENTITY taskdef-webtest SYSTEM "entities/taskdef.xml">
+    <!ENTITY welcome-click SYSTEM "file:./entities/welcome-click.xml">
 ]>
 <!--
  $Header: /home/cvs/jakarta-struts/web/example/WEB-INF/webtest.xml,v 1.2 
2004/03/12 02:44:34 husted Exp $
@@ -51,7 +52,7 @@
     <!-- Load application resources -->
     <property 
file="../../java/org/apache/struts/apps/mailreader/resources/ApplicationResources.properties"/>
 
-    <taskdef file="C:/opt/Canoo/webtest-1.7/webtestTaskdefs.properties">
+    <taskdef file="C:\opt\Canoo\webtest-1.7\webtestTaskdefs.properties">
        <classpath>
           <fileset dir="${webtest.home}" includes="**/lib/*.jar"/>
           <fileset dir="${webtest.home}" includes="**/lib/runtime/*.jar"/>
@@ -72,71 +73,79 @@
                <verifytitle
                    description="Welcome page title"
                    text="${index.title}" />
-               <clicklink label="${index.registration}" />
+               <clicklink
+                       description="Click Register"
+                       label="${index.registration}" />
                <verifytitle
                    description="Registration page title"
                    text="${registration.title.create}" />
-               <clicklink label="${index.title}" />
-               <clicklink label="${index.logon}" />
+
+               &welcome-click;
+
+               <clicklink
+                       description="Click Logon"
+                       label="${index.logon}" />
                <verifytitle
                    description="Logon page title"
                    text="${logon.title}" />
-               <clicklink label="${index.title}" />
-            </steps>
+
+               &welcome-click;
+
+           </steps>
         </webtest>
-        </target>
+    </target>
 
-        <target name="logon"
-            description="Logon page">
+    <target name="logon"
+        description="Logon page">
 
-            <webtest name="Open logon action">
-            &config;
-               <steps>
-                   <invoke
-                      description="Pass logon"
-                      url="Logon.do" />
-                   <verifytitle
-                       description="Logon page title"
-                       text="${logon.title}" />
-                   <setinputfield
-                     description="username"
-                     name="username"
-                     value="user" />
-                  <setinputfield
-                    description="password"
-                    name="password"
-                    value="pass" />
-                   <clickbutton
-                       description="Submit"
-                       name="Submit"/>
-                </steps>
-            </webtest>
-
-            <webtest name="Fail logon">
-            &config;
-               <steps>
-                   <invoke
-                      description="Open logon action"
-                      url="Logon.do" />
-                   <verifytitle
-                       description="Logon page title"
-                       text="${logon.title}" />
-                   <setinputfield
-                     description="username"
-                     name="username"
-                     value="xxxx" />
-                  <setinputfield
-                    description="password"
-                    name="password"
-                    value="xxxx" />
-                   <clickbutton
-                       description="Submit"
-                       name="Submit"/>
-                   <verifytitle
-                       description="Logon page title"
-                       text="${logon.title}" />
-                </steps>
-            </webtest>
+        <webtest name="Open logon action">
+        &config;
+           <steps>
+               <invoke
+                  description="Pass logon"
+                  url="Logon.do" />
+               <verifytitle
+                   description="Logon page title"
+                   text="${logon.title}" />
+               <setinputfield
+                 description="username"
+                 name="username"
+                 value="user" />
+              <setinputfield
+                description="password"
+                name="password"
+                value="pass" />
+               <clickbutton
+                   description="Submit"
+                   name="Submit"/>
+            </steps>
+        </webtest>
+
+        <webtest name="Fail logon">
+        &config;
+           <steps>
+               <invoke
+                  description="Open logon action"
+                  url="Logon.do" />
+               <verifytitle
+                   description="Logon page title"
+                   text="${logon.title}" />
+               <setinputfield
+                 description="username"
+                 name="username"
+                 value="xxxx" />
+              <setinputfield
+                description="password"
+                name="password"
+                value="xxxx" />
+               <clickbutton
+                   description="Submit"
+                   name="Submit"/>
+               <verifytitle
+                   description="Logon page title"
+                   text="${logon.title}" />
+            </steps>
+        </webtest>
     </target>
 
 </project>



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

Reply via email to