Notes:
Changes: Acknowledgements: Thanks to Ville Skyttä for removing the test dependency on xerces. Thanks to Donald Ball for pointing out the problem with the behavior of Select.selectedIndex. Thanks to Jin Zhao for help in expanding the search possibilities for links. Problems fixed: 1. An attempt to set a non-existent parameter now correctly throws NoSuchParameterException rather than UnusedParameterValueException. 2. Obtaining the URL from a javascript: request no longer throws MalformedURLException. 3. Bug #604478 - setting the form action did not always update the predefined parameter list. This could cause a request to be sent with the wrong URL parameters. 4. Form, Image, and Link names are now properly treated as case-sensitive within Javascript. 5. A Javascript URL containing a question mark was incorrectly being URL-encoded. 6. HTML comments at the start of a JavaScript were not being completely ignored 7. Disabled form parameters were being submitted with requests and could be modified by setParameter calls. 8. Bug #617065: using Javascript to set an option in a drop-down box does not unset other options. Additions: Content and parsing enhancements: 1. When no response is received from a server, HttpUnit will now throw HttpServerNotFoundException, which is a subclass of HttpNotFoundException. This should aid in diagnosing response failures. 2. When a 404 (not found status) is received from a server, the accompanying message is now available from HttpNotFoundException.getResponseMessage(). 3. The mechanism for search for links has been expanded to permit arbitrary search criteria and to retrieve either the first match or all matches. 4. Some per-client properties are now stored in a per-client object. Each new web client is initialized from the default, but may also be configured independently by retrieving the clientProperties object. Scripting enhancements: 6. It is now possible to control the handling of script errors by calling HttpUnitOptions.setExceptionsThrownOnScriptError. If the exceptions are not thrown, the error messages will instead be available via HttpUnitOptions.getScriptErrorMessages() 7. The forms, images, links, and Form.elements arrays now handle string indexes 8. Select.selectedIndex is now read/write. 9. Link.href is now read-write. 10. The Navigator object is now supported.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use