Author: wesw
Date: Wed Mar  4 22:00:32 2009
New Revision: 750181

URL: http://svn.apache.org/viewvc?rev=750181&view=rev
Log:
Adding reset functionality and a single selenium test, will add more tests

Added:
    
struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/FormWithResetGetReqAjaxResp-input.jsp
      - copied, changed from r750152, 
struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp
    
struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/FormWithResetGetReqAjaxResp.jsp
      - copied unchanged from r750152, 
struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse.jsp
    
struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/FormWithResetGetReqAjaxResp
Modified:
    
struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/s2-jquery-plugin-selenium-tests

Copied: 
struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/FormWithResetGetReqAjaxResp-input.jsp
 (from r750152, 
struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp)
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/FormWithResetGetReqAjaxResp-input.jsp?p2=struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/FormWithResetGetReqAjaxResp-input.jsp&p1=struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp&r1=750152&r2=750181&rev=750181&view=diff
==============================================================================
--- 
struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp
 (original)
+++ 
struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/FormWithResetGetReqAjaxResp-input.jsp
 Wed Mar  4 22:00:32 2009
@@ -16,6 +16,7 @@
           ajaxResult="true" ajaxResultHandler="handleAjaxResponse" >
 <sjx:textfield key="msg" />
 <sjx:submit />
+<sjx:reset />
 </sjx:form>
 <div id="messages"></div>
 </body>

Added: 
struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/FormWithResetGetReqAjaxResp
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/FormWithResetGetReqAjaxResp?rev=750181&view=auto
==============================================================================
--- 
struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/FormWithResetGetReqAjaxResp
 (added)
+++ 
struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/FormWithResetGetReqAjaxResp
 Wed Mar  4 22:00:32 2009
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case";>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" 
href="http://localhost:8080/s2-jquery-showcase/FormWithResetGetReqAjaxResp_input.action";
 />
+<title>FormWithResetGetReqAjaxResp</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">FormWithResetGetReqAjaxResp</td></tr>
+</thead><tbody>
+<tr>
+       <td>open</td>
+       <td>/s2-jquery-showcase/FormWithResetGetReqAjaxResp_input.action</td>
+       <td></td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>indexForm_0</td>
+       <td></td>
+</tr>
+<tr>
+       <td>pause</td>
+       <td>500</td>
+       <td></td>
+</tr>
+<tr>
+       <td>verifyTextPresent</td>
+       <td>You must enter a message.</td>
+       <td></td>
+</tr>
+<tr>
+       <td>type</td>
+       <td>indexForm_msg</td>
+       <td>a message</td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>indexForm_0</td>
+       <td></td>
+</tr>
+<tr>
+       <td>pause</td>
+       <td>500</td>
+       <td></td>
+</tr>
+<tr>
+       <td>verifyTextPresent</td>
+       <td>a message</td>
+       <td></td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>//inp...@value='Reset']</td>
+       <td></td>
+</tr>
+<tr>
+       <td>pause</td>
+       <td>500</td>
+       <td></td>
+</tr>
+<tr>
+       <td>verifyTextNotPresent</td>
+       <td>You must enter a message</td>
+       <td></td>
+</tr>
+<tr>
+       <td>type</td>
+       <td>indexForm_msg</td>
+       <td>another message</td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>indexForm_0</td>
+       <td></td>
+</tr>
+<tr>
+       <td>pause</td>
+       <td>500</td>
+       <td></td>
+</tr>
+<tr>
+       <td>verifyTextPresent</td>
+       <td>another message</td>
+       <td></td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>//inp...@value='Reset']</td>
+       <td></td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>indexForm_0</td>
+       <td></td>
+</tr>
+<tr>
+       <td>pause</td>
+       <td>500</td>
+       <td></td>
+</tr>
+<tr>
+       <td>verifyTextPresent</td>
+       <td>You must enter a message.</td>
+       <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>

Modified: 
struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/s2-jquery-plugin-selenium-tests
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/s2-jquery-plugin-selenium-tests?rev=750181&r1=750180&r2=750181&view=diff
==============================================================================
--- 
struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/s2-jquery-plugin-selenium-tests
 (original)
+++ 
struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/s2-jquery-plugin-selenium-tests
 Wed Mar  4 22:00:32 2009
@@ -12,6 +12,7 @@
 <tr><td><a 
href="SimpleFormGetNonAjaxResponse">SimpleFormGetNonAjaxResponse</a></td></tr>
 <tr><td><a 
href="SimpleFormPostAjaxResponse">SimpleFormPostAjaxResponse</a></td></tr>
 <tr><td><a 
href="SimpleFormGetAjaxResponse">SimpleFormGetAjaxResponse</a></td></tr>
+<tr><td><a 
href="FormWithResetGetReqAjaxResp">FormWithResetGetReqAjaxResp</a></td></tr>
 </tbody></table>
 </body>
 </html>


Reply via email to