Revision: 491
Author:   henryju
Date:     2006-06-22 04:42:55 -0700 (Thu, 22 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/jwebunit/?rev=491&view=rev

Log Message:
-----------
Add test case that highlights HttpUnit bug (getParameterValue on a submit 
button).
Make initial exception available in the RuntimeException.getCause()
Update TODO

Modified Paths:
--------------
    trunk/TODO
    
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
    trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTester.java
    
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitDialog.java
    
trunk/jwebunit-httpunit-plugin/src/main/java/net/sourceforge/jwebunit/httpunit/HttpUnitDialog.java
    
trunk/jwebunit-jacobie-plugin/src/main/java/net/sourceforge/jwebunit/jacobie/JacobieDialog.java
Modified: trunk/TODO
===================================================================
--- trunk/TODO  2006-06-21 15:09:31 UTC (rev 490)
+++ trunk/TODO  2006-06-22 11:42:55 UTC (rev 491)
@@ -1,17 +1,14 @@
 ** Global **
  - Add log4j support and log each function
- - Find a way for each dialog to report its presence to the Dialog Registry
+ - Create branch 1.x with httpunit and htmlunit only
+ - Develop trunk (2.x)with htmlunit and selenium only
+ - Refactor Exception mechanism
 
 ** HtmlUnitDialog **
- - Add **ForLabel functions (I don't know how to do this)
- - Add **BeforeLabel functions (I don't know how to do this)
- - Correct some function that use CompressedTable
+ - Correct space problems with asText()
+  
  
-** JacobieDialog **
- - Implement all auto-generated classes
- - Find an easy way to cope with jacob.dll
- 
-** SeelniumDialog **
+** SeleniumDialog **
  - Find a way to automatically launch Selenium Server (conflit with Jetty 
version)
  
 ** Website **

Modified: 
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
===================================================================
--- 
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
   2006-06-21 15:09:31 UTC (rev 490)
+++ 
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
   2006-06-22 11:42:55 UTC (rev 491)
@@ -55,9 +55,10 @@
         assertPass("assertFormNotPresent", new String[]{"noform"});
     }
 
-    public void testAssertFormParameterEquals() throws Throwable {
+    public void testAssertFormElementEquals() throws Throwable {
         beginAt("/testPage.html");
         assertPass("assertFormElementEquals", new Object[]{"testInputElement", 
"testValue"});
+        assertPass("assertFormElementEquals", new Object[]{"submitButton", 
"buttonLabel"});
         assertFail("assertFormElementEquals", new Object[]{"testInputElement", 
"noSuchValue"});
         assertFail("assertFormElementEquals", new Object[]{"noSuchElement", 
"testValue"});
     }

Modified: 
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTester.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTester.java   
2006-06-21 15:09:31 UTC (rev 490)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTester.java   
2006-06-22 11:42:55 UTC (rev 491)
@@ -726,6 +726,7 @@
 
     /**
      * Assert that a specific form element has an expected value.
+     * Can be used to check hidden input.
      * 
      * @param formElementName
      * @param expectedValue

Modified: 
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitDialog.java
===================================================================
--- 
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitDialog.java
  2006-06-21 15:09:31 UTC (rev 490)
+++ 
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitDialog.java
  2006-06-22 11:42:55 UTC (rev 491)
@@ -131,7 +131,7 @@
 
         } catch (IOException aException) {
             throw new RuntimeException(ExceptionUtility
-                    .stackTraceToString(aException));
+                    .stackTraceToString(aException), aException);
         }
     }
 

Modified: 
trunk/jwebunit-httpunit-plugin/src/main/java/net/sourceforge/jwebunit/httpunit/HttpUnitDialog.java
===================================================================
--- 
trunk/jwebunit-httpunit-plugin/src/main/java/net/sourceforge/jwebunit/httpunit/HttpUnitDialog.java
  2006-06-21 15:09:31 UTC (rev 490)
+++ 
trunk/jwebunit-httpunit-plugin/src/main/java/net/sourceforge/jwebunit/httpunit/HttpUnitDialog.java
  2006-06-22 11:42:55 UTC (rev 491)
@@ -106,7 +106,7 @@
 
         } catch (Exception aException) {
             throw new RuntimeException(ExceptionUtility
-                    .stackTraceToString(aException));
+                    .stackTraceToString(aException), aException);
         }
     }
 

Modified: 
trunk/jwebunit-jacobie-plugin/src/main/java/net/sourceforge/jwebunit/jacobie/JacobieDialog.java
===================================================================
--- 
trunk/jwebunit-jacobie-plugin/src/main/java/net/sourceforge/jwebunit/jacobie/JacobieDialog.java
     2006-06-21 15:09:31 UTC (rev 490)
+++ 
trunk/jwebunit-jacobie-plugin/src/main/java/net/sourceforge/jwebunit/jacobie/JacobieDialog.java
     2006-06-22 11:42:55 UTC (rev 491)
@@ -64,7 +64,7 @@
                        naviateToPage(url);
                } catch (Exception aException) {                        
                        //cant find requested page.  most browsers will return 
a page with 404 in the body or title.
-            throw new 
TestingEngineResponseException(ExceptionUtility.stackTraceToString(aException));
+            throw new 
TestingEngineResponseException(ExceptionUtility.stackTraceToString(aException), 
aException);
                }
 
        }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to