Patches item #1092560, was opened at 2004-12-29 06:59 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497984&aid=1092560&group_id=61302
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Brian Shaver (shakerlxxv) Assigned to: Nobody/Anonymous (nobody) Summary: fix problem using Cookie methods in HttpUnitDialog Initial Comment: When I tried using the 3 new methods in HttpUnitDialog which relate to Cookie handling, I found the behavior to be a bit misleading. The methods dumpCookies(), hasCookie() and getCookieValue() are only referencing cookies which were sent with the most recent response rather than all cookies sent previously during the web conversation. Since many actual servers you'd be testing against will only send a cookie to you once during an entire web conversation, these methods are not that useful for testing. This patch updates the hasCookie() and getCookieValue() methods to properly reference cookies from the entire web conversation. It also updates the existing WebCookieTest methods and adds a few new ones as well. I did not update the dumpCookies() method to reference all cookies, but left it more or less as it was. There were 2 reasons for this. It was properly documented in the javadoc, that this method will dump cookies only from the current response. Also, the other similar dump methods are more focused on the response context, so this one fits the pattern. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497984&aid=1092560&group_id=61302 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Jwebunit-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-development
