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/08 08:48:09 UTC

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

Author: wsmoak
Date: Mon Aug  7 23:48:08 2006
New Revision: 429599

URL: http://svn.apache.org/viewvc?rev=429599&view=rev
Log:
First pass at testing the Tree2 component using the 'Tree 2 (no nav icons)' link.
It's difficult to select the spans containing the text as they do not have ids.  
Using an xpath expression works in Firefox but fails in IE.  (See comments in the test.)
TOMAHAWK-583

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

Modified: 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=429599&r1=429598&r2=429599&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html Mon Aug  7 23:48:08 2006
@@ -10,6 +10,11 @@
                <a href="FormAddNumbersTest.html">Form Add Numbers Test</a>
             </td>
          </tr>
+         <tr>
+            <td>
+               <a href="Tree2NoNavTest.html">Tree2 (no nav icons) Test</a>
+            </td>
+         </tr>
       </table>
    </body>
 </html>

Added: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/Tree2NoNavTest.html
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/test/selenium/Tree2NoNavTest.html?rev=429599&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/test/selenium/Tree2NoNavTest.html (added)
+++ myfaces/tomahawk/trunk/examples/simple/src/test/selenium/Tree2NoNavTest.html Mon Aug  7 23:48:08 2006
@@ -0,0 +1,83 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Tree2NoNavTest</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Tree2NoNavTest</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>/myfaces-example-simple/home.jsf</td>
+	<td></td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>link=Tree2 (no nav icons)</td>
+	<td></td>
+</tr>
+<!--Click the 'Inbox' icon-->
+<tr>
+	<td>clickAndWait</td>
+	<td>//a[@id='_idJsp0:serverTree:0:_idJsp8']</td>
+	<td></td>
+</tr>
+<!--Verify that two nodes appear-->
+<tr>
+	<td>assertTextPresent</td>
+	<td>Frank Foo</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertTextPresent</td>
+	<td>Betty Bar</td>
+	<td></td>
+</tr>
+<!--Click the 'Frank Foo' folder icon.-->
+<tr>
+	<td>clickAndWait</td>
+	<td>//a[@id='_idJsp0:serverTree:0:0:_idJsp2']</td>
+	<td></td>
+</tr>
+<!--Use xpath to verify the text on the first node.-->
+<!--This works in Firefox, but not in IE.-->
+<tr>
+	<td>assertText</td>
+	<td>//html/body/form/span/table[3]/tbody/tr/td[3]/span</td>
+	<td>Requires Foo</td>
+</tr>
+<!--Verify the folder icon for 'Requires Foo Reviewer'-->
+<tr>
+	<td>assertElementPresent</td>
+	<td>//a[@id='_idJsp0:serverTree:0:0:1:_idJsp8']</td>
+	<td></td>
+</tr>
+<!--No id for the folder icon or the span with text-->
+<tr>
+	<td>assertTextPresent</td>
+	<td>Requires Foo Recommendation</td>
+	<td></td>
+</tr>
+<!--Verify the folder icon for 'Requires Foo Approval'-->
+<tr>
+	<td>assertElementPresent</td>
+	<td>//a[@id='_idJsp0:serverTree:0:0:3:_idJsp8']</td>
+	<td></td>
+</tr>
+<!--Verify the folder icon for 'Requires Bar Processing'-->
+<tr>
+	<td>assertElementPresent</td>
+	<td>//a[@id='_idJsp0:serverTree:0:0:4:_idJsp15']</td>
+	<td></td>
+</tr>
+<!--Verify the folder icon for 'Requires Bar Approval'-->
+<tr>
+	<td>assertElementPresent</td>
+	<td>//a[@id='_idJsp0:serverTree:0:0:5:_idJsp15']</td>
+	<td></td>
+</tr>
+</tbody></table>
+</body>
+</html>

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

Propchange: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/Tree2NoNavTest.html
------------------------------------------------------------------------------
    svn:executable = *

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