Feature Requests item #1744628, was opened at 2007-06-28 19:08 Message generated for change (Comment added) made by jevonwright You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1744628&group_id=61302
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core API >Group: Release 2.1 >Status: Closed Priority: 5 Private: No Submitted By: Matthew Jensen (mmj123) Assigned to: Jevon Wright (jevonwright) Summary: assertResponseCode and other assertResultHeader Initial Comment: Would be good to have assertions for response code and http headers. ---------------------------------------------------------------------- >Comment By: Jevon Wright (jevonwright) Date: 2008-10-29 12:50 Message: You can now assert all of these things in SVN trunk: assertResponseCode(int) assertResponseCodeBetween(int, int) assertHeaderPresent(String) assertHeaderNotPresent(String) assertHeaderEquals(String, String) assertHeaderMatches(String, String) And some accessor methods: getResponseCode() getHeader(String) getAllHeaders() ---------------------------------------------------------------------- Comment By: Jevon Wright (jevonwright) Date: 2008-10-29 01:37 Message: In the current SVN trunk you can now test somewhat for response codes, although it only works for HtmlUnit and for failing error codes (>= 400). Still have to work on assertions for HTTP headers. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1744628&group_id=61302 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ JWebUnit-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-development
