1. opensymphony
  2. webwork

Commits

tm_jee  committed c306aa0

WW-1470
- Create Selenium test cases for features in showcase example
- added more selenium test cases

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2943573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits fe49332
  • Branches master

Comments (0)

Files changed (10)

File webapps/showcase/src/webapp/selenium/tests/ActionTagTest.jsp

View file
  • Ignore whitespace
+<%--
+  @author tmjee
+  @version $Date$ $Id$
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+  <head>
+      <meta name="decorator" content="plain" />
+      <title>ActionTagTest</title>
+  </head>
+  <body>
+    <table>
+        <tr colspan="3">
+            <td>ActionTagTest</td>
+        </tr>
+        <tr>
+            <td>open</td>
+            <td><ww:url action="showActionTagDemo" namespace="/tags/non-ui/actionTag" includeContext="true" includeParams="none" /></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>This is Not - Included by the Action Tag</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>This is INCLUDED by the action tag</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>This is INCLUDED by the action tag (Page2)</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>This is INCLUDED by the action tag (Page3)</td>
+            <td></td>
+        </tr>
+    </table>
+  </body>
+</html>

File webapps/showcase/src/webapp/selenium/tests/AppendIteratorTagTest.jsp

View file
  • Ignore whitespace
+<%--
+  @author tmjee
+  @version $Date$ $Id$
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+  <head>
+      <title>Append Iterator Tag Test</title>
+      <meta name="decorator" content="plain" />
+  </head>
+  <body>
+    <table>
+        <tr>
+            <td colspan="3">AppendIteratorTagTest</td>
+        </tr>
+        <tr>
+            <td>open</td>
+            <td><ww:url action="showAppendTagDemo" namespace="/tags/non-ui/appendIteratorTag" includeContext="true" includeParams="none" /></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>type</td>
+            <td>submitAppendTagDemo_iteratorValue1</td>
+            <td>aaa,bbb,ccc</td>
+        </tr>
+        <tr>
+            <td>type</td>
+            <td>submitAppendTagDemo_iteratorValue2</td>
+            <td>ddd,eee,fff</td>
+        </tr>
+        <tr>
+            <td>clickAndWait</td>
+            <td>submitAppendTagDemo_0</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>aaa</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>bbb</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>ccc</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>ddd</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>eee</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>fff</td>
+            <td></td>
+        </tr>
+    </table>
+  </body>
+</html>

File webapps/showcase/src/webapp/selenium/tests/DateTagTest.jsp

View file
  • Ignore whitespace
+<%--
+  @author tmjee
+  @version $Date$ $Id$
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="ww" uri="/webwork" %>
+
+<ww:action id="myDate" name="date" namespace="/" executeResult="false" />
+
+<html>
+  <head>
+      <meta name="decorator" content="plain" />
+      <title>DateTagTest</title>
+  </head>
+  <body>
+    <table>
+        <tr>
+            <td>open</td>
+            <td><ww:url value="/tags/non-ui/date.jsp" includeContext="true" includeParams="none" /></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td><ww:date name="#myDate.before" format="MMM, dd yyyy" /></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td><ww:date name="#myDate.before" nice="true"/></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td><ww:date name="#myDate.after" format="dd.MM.yyyy" /></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td><ww:date name="#myDate.after" nice="true"/></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td><ww:date name="#myDate.past" format="dd/MM/yyyy hh:mm"/></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td><ww:date name="#myDate.past" format="MM-dd-yy"/></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td><ww:date name="#myDate.past" nice="true"/></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td><ww:date name="#myDate.future" nice="true"/></td>
+            <td></td>
+        </tr>
+    </table>
+  </body>
+</html>

File webapps/showcase/src/webapp/selenium/tests/DebugTagTest.jsp

View file
  • Ignore whitespace
+<%--
+  @author tmjee
+  @version $Date$ $Id$
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+  <head>
+      <meta name="decorator" content="plain" />
+      <title>DebugTagTest</title>
+  </head>
+  <body>
+    <table>
+        <tr>
+            <td colspan="3">DebugTagTest</td>
+        </tr>
+        <tr>
+            <td>open</td>
+            <td><ww:url value="/tags/non-ui/debug.jsp" includeContext="true" includeParams="none" /></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>ValueStack in Debug Console</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>ValueStack Debug as XML</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>click</td>
+            <td>debugAnchor</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>WebWork ValueStack Debug</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>Value Stack Contents</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>Stack Context</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>These items are available using the #key notation</td>
+            <td></td>
+        </tr>
+
+        
+    </table>
+
+  </body>
+</html>

File webapps/showcase/src/webapp/selenium/tests/IfTagFreemarkerTest.jsp

View file
  • Ignore whitespace
+<%--
+  @author tmjee
+  @version $Date$ $Id$
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+  <head>
+      <title>IfTagFreemarkerTest</title>
+      <meta content="plain" name="decorator" />
+  </head>
+  <body>
+    <table>
+        <tr>
+            <td colspan="3">IfTagFreemarkerTest</td>
+        </tr>
+        <tr>
+            <td>open</td>
+            <td><ww:url action="testIfTagFreemarker.action" namespace="/tags/non-ui/ifTag" includeContext="true" includeParams="none" /> </td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>1 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>2 - Bar -  Bar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>3 - FooFooFoo -  Foo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>4 - FooBarBar -  Foo BarBar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>5 - BarFooFoo -  Bar FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>6 - BarBarBar -  Bar BarBar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>7 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>8 - Moo -  Moo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>9 - Bar -  Bar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>10 - FooFooFoo -  Foo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>11 - FooMooMoo -  Foo MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>12 - FooBarBar -  Foo BarBar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>13 - MooFooFoo -  Moo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>14 - MooMooMoo -  Moo MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>15 - MooBarBar -  Moo BarBar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>16 - BarFooFoo -  Bar FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>17 - BarMooMoo -  Bar MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>18 - BarBarBar -  Bar BarBar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>19 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>20 - ** should not display anything ** -</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>21 FooFooFoo -  Foo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>22 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>23 - BarFooFoo -  Bar FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>24 - Bar -  Bar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>25 - FooFooFoo  Foo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>26 - FooMooMoo  Foo MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>27 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>28 - MooFooFoo  Moo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>29 - MooMooMoo  Moo MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>30 - Moo -  Moo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>31 - BarFooFoo -  Bar FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>32 - BarMooMoo -  Bar MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>33 - Bar -  Bar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>34 - FooFooFoo -  Foo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>35 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>36 - MooFooFoo -  Moo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>37 - Moo -  Moo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>38 - BarFooFoo -  Bar FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>39 - Bar -  Bar</td>
+            <td></td>
+        </tr>
+    </table>
+  </body>
+</html>

File webapps/showcase/src/webapp/selenium/tests/IfTagJspTest.jsp

View file
  • Ignore whitespace
+<%--
+  @author tmjee
+  @version $Date$ $Id$
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+  <head>
+      <title>IfTagJspTest</title>
+      <meta content="plain" name="decorator" />
+  </head>
+  <body>
+    <table>
+        <tr>
+            <td colspan="3">IfTagJspTest</td>
+        </tr>
+        <tr>
+            <td>open</td>
+            <td><ww:url namespace="/tags/non-ui/ifTag" action="testIfTagJsp" includeContext="true" includeParams="none"/></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>1 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>2 - Bar -  Bar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>3 - FooFooFoo -  Foo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>4 - FooBarBar -  Foo BarBar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>5 - BarFooFoo -  Bar FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>6 - BarBarBar -  Bar BarBar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>7 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>8 - Moo -  Moo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>9 - Bar -  Bar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>10 - FooFooFoo -  Foo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>11 - FooMooMoo -  Foo MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>12 - FooBarBar -  Foo BarBar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>13 - MooFooFoo -  Moo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>14 - MooMooMoo -  Moo MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>15 - MooBarBar -  Moo BarBar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>16 - BarFooFoo -  Bar FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>17 - BarMooMoo -  Bar MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>18 - BarBarBar -  Bar BarBar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>19 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>20 - ** should not display anything ** -</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>21 FooFooFoo -  Foo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>22 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>23 - BarFooFoo -  Bar FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>24 - Bar -  Bar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>25 - FooFooFoo  Foo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>26 - FooMooMoo  Foo MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>27 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>28 - MooFooFoo  Moo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>29 - MooMooMoo  Moo MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>30 - Moo -  Moo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>31 - BarFooFoo -  Bar FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>32 - BarMooMoo -  Bar MooMoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>33 - Bar -  Bar</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>34 - FooFooFoo -  Foo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>35 - Foo -  Foo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>36 - MooFooFoo -  Moo FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>37 - Moo -  Moo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>38 - BarFooFoo -  Bar FooFoo</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>39 - Bar -  Bar</td>
+            <td></td>
+        </tr>
+    </table>
+  </body>
+</html>

File webapps/showcase/src/webapp/selenium/tests/IteratorGeneratorTagTest.jsp

View file
  • Ignore whitespace
+<%--
+  @author tmjee
+  @version $Date$ $Id$
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+  <head>
+      <title>IteratorGeneratorTagTest</title>
+      <meta name="decorator" content="plain" />
+  </head>
+  <body>
+    <table>
+        <tr>
+            <td colspan="3">IteratorGeneratorTagTest</td>
+        </tr>
+        <tr>
+            <td>open</td>
+            <td><ww:url action="showGeneratorTagDemo" namespace="/tags/non-ui/iteratorGeneratorTag" includeContext="true" includeParams="none" /> </td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>type</td>
+            <td>submitGeneratorTagDemo_value</td>
+            <td>aaa,bbb,ccc,ddd,eee,fff,ggg,hhh,iii,</td>
+        </tr>
+        <tr>
+            <td>type</td>
+            <td>submitGeneratorTagDemo_separator</td>
+            <td>,</td>
+        </tr>
+        <tr>
+            <td>type</td>
+            <td>submitGeneratorTagDemo_count</td>
+            <td>3</td>
+        </tr>
+        <tr>
+            <td>clickAndWait</td>
+            <td>submitGeneratorTagDemo_0</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>aaa</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>bbb</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>ccc</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextNotPresent</td>
+            <td>ddd</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextNotPresent</td>
+            <td>eee</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextNotPresent</td>
+            <td>fff</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextNotPresent</td>
+            <td>ggg</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextNotPresent</td>
+            <td>hhh</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextNotPresent</td>
+            <td>iii</td>
+            <td></td>
+        </tr>
+
+    </table>
+  </body>
+</html>
+

File webapps/showcase/src/webapp/selenium/tests/MergeIteratorTagTest.jsp

View file
  • Ignore whitespace
+<%--
+  @author tmjee
+  @version $Date$ $Id$
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+  <head>
+      <title>MergeIetartorTagTest</title>
+      <meta content="plain" name="decorator" />
+  </head>
+  <body>
+    <table>
+        <tr>
+            <td colspan="3">MergeIteratorTagTest</td>
+        </tr>
+        <tr>
+            <td>open</td>
+            <td><ww:url action="showMergeTagDemo" namespace="/tags/non-ui/mergeIteratorTag" includeContext="true" includeParams="none"/> </td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>type</td>
+            <td>submitMergeTagDemo_iteratorValue1</td>
+            <td>aaa,bbb,ccc</td>
+        </tr>
+        <tr>
+            <td>type</td>
+            <td>submitMergeTagDemo_iteratorValue2</td>
+            <td>ddd,eee,fff</td>
+        </tr>
+        <tr>
+            <td>clickAndWait</td>
+            <td>submitMergeTagDemo_0</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>aaa</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>ddd</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>bbb</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>eee</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>ccc</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>fff</td>
+            <td></td>
+        </tr>
+        
+    </table>
+  </body>
+</html>

File webapps/showcase/src/webapp/selenium/tests/SubsetIteratorTagTest.jsp

View file
  • Ignore whitespace
+<%--
+  @author tmjee
+  @version $Date$ $Id$
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+  <head>
+      <title>SubsetIteratorTagTest</title>
+      <meta content="plain" name="decorator" />
+  </head>
+  <body>
+    <table>
+        <tr>
+            <td colspan="3">SubsetIteratorTagTest</td>
+        </tr>
+        <tr>
+            <td>open</td>
+            <td><ww:url action="showSubsetTagDemo" namespace="/tags/non-ui/subsetIteratorTag" includeContext="true" includeParams="none" /></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>type</td>
+            <td>submitSubsetTagDemo_iteratorValue</td>
+            <td>aaa,bbb,ccc,ddd,eee,fff</td>
+        </tr>
+        <tr>
+            <td>type</td>
+            <td>submitSubsetTagDemo_count</td>
+            <td>3</td>
+        </tr>
+        <tr>
+            <td>type</td>
+            <td>submitSubsetTagDemo_start</td>
+            <td>2</td>
+        </tr>
+        <tr>
+            <td>clickAndWait</td>
+            <td>submitSubsetTagDemo_0</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>ccc</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>ddd</td>
+            <td></td>
+        </tr>
+        <tr>
+            <td>verifyTextPresent</td>
+            <td>eee</td>
+            <td></td>
+        </tr>
+    </table>
+  </body>
+</html>

File webapps/showcase/src/webapp/selenium/tests/TestSuite.html

View file
  • Ignore whitespace
                 <a href="./../tests/ContinuationsTest.jsp">ContinuationTest</a>
             </td>
         </tr>
+        <tr>
+            <td>
+                <a href="./../tests/ActionTagTest.jsp">ActionTagTest</a>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <a href="./../tests/DateTagTest.jsp">DateTagTest</a>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <a href="./../tests/DebugTagTest.jsp">DebugTagTest</a>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <a href="./../tests/IteratorGeneratorTagTest.jsp">IteratorGeneratorTagTest</a>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <a href="./../tests/MergeIteratorTagTest.jsp">MergeIteratorTagTest</a>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <a href="./../tests/AppendIteratorTagTest.jsp">AppendIteratorTagTest</a>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <a href="./../tests/SubsetIteratorTagTest.jsp">SubsetIteratorTagTest</a>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <a href="./../tests/IfTagFreemarkerTest.jsp">IfTagFreemarkerTest</a>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <a href="./../tests/IfTagJspTest.jsp">IfTagJspTest</a>
+            </td>
+        </tr>
         </tbody>
     </table>