Hi All, I'm wondering what is the best way to test security with WebTest.
Here's the scenario: A user requests a page before logging in. Because a user hasn't logged in, the web app returns a login page with a 401 status. User logs in successfully and is redirected to the page originally requested. My problem was that htmlUnit throws an exception if the request wasn't successful. While this may be a error in a test, in this scenario this is expected and not a failure. So I've modified and built a custom version of htmlUnit that won't throw an exception (if a non-success status code is expected (Yeah, it's a hack...)). Is there a good way to test this scenario with WebTest? Will WebTest fail with a failure from htmlUnit (I'd be surprised if it didn't)? How have other people tested this? Regards, Doug -- blog = http://www.trontos.com/dsouth/blog/ _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

