You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ws...@apache.org on 2006/08/06 17:01:48 UTC

svn commit: r429133 - in /myfaces/tomahawk/trunk/examples/simple/src/test: ./ selenium/ selenium/FormAddNumbersTest.html selenium/TestSuite.html

Author: wsmoak
Date: Sun Aug  6 08:01:48 2006
New Revision: 429133

URL: http://svn.apache.org/viewvc?rev=429133&view=rev
Log:
Add a simple test for the 'Sample 1' form that adds and subtracts numbers.  
It passes for the 'Add them' submit button, then fails for the 'Add them by...' link.
TOMAHAWK-583

Added:
    myfaces/tomahawk/trunk/examples/simple/src/test/
    myfaces/tomahawk/trunk/examples/simple/src/test/selenium/
    myfaces/tomahawk/trunk/examples/simple/src/test/selenium/FormAddNumbersTest.html   (with props)
    myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html   (with props)

Added: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/FormAddNumbersTest.html
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/test/selenium/FormAddNumbersTest.html?rev=429133&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/test/selenium/FormAddNumbersTest.html (added)
+++ myfaces/tomahawk/trunk/examples/simple/src/test/selenium/FormAddNumbersTest.html Sun Aug  6 08:01:48 2006
@@ -0,0 +1,64 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>FormAddNumbersTest</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">FormAddNumbersTest</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>/myfaces-example-simple/home.jsf</td>
+	<td></td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>link=Sample 1</td>
+	<td></td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>form1:number1</td>
+	<td>3</td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>form1:number2</td>
+	<td>21</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>form1:addButton</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertTextPresent</td>
+	<td>Result: 24</td>
+	<td></td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>form1:number1</td>
+	<td>10</td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>form1:number2</td>
+	<td>50</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>link=Add them by clicking this link</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertTextPresent</td>
+	<td>Result: 60</td>
+	<td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>

Propchange: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/FormAddNumbersTest.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/FormAddNumbersTest.html
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html?rev=429133&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html (added)
+++ myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html Sun Aug  6 08:01:48 2006
@@ -0,0 +1,15 @@
+
+<html>
+   <body>
+      <table>
+         <tr>
+            <td>Tomahawk Simple Example Tests</td>
+         </tr>
+         <tr>
+            <td>
+               <a href="FormAddNumbersTest.html">Form Add Numbers Test</a>
+            </td>
+         </tr>
+      </table>
+   </body>
+</html>
\ No newline at end of file

Propchange: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL