Re: httpunit testing pages requiring a login?
Tim Diggins <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Yes, writing a login-get-access, dont-login-dont-get-access test is often the first test I write. But do you mean form-based authentication or Http Basic? as for information, the following helps for basic auth: http://www.google.com/search?q=httpunit+authentication (maybe you were missing the magic word authentication?) which leads you in two clicks to http://httpunit.sourceforge.net/doc/api/com/meterware/httpunit/WebClient.html#setAuthorization(java.lang.String,%20java.lang.String) form based is more complicated, but is a variant of the forms in the cookbook/tutorial. Have a look at "Working with forms" on http://httpunit.sourceforge.net/doc/cookbook.html hth Tim On 19 Dec 2007, at 16:34, john-paul york wrote: > Hi, > > I am reading information on httpunit and am wondering if it is > possible for httpunit to test a page that requires a userid/ > password? I can not seem to find any info on httpunit testing this > function on a webpage. > > Any help would be great. > > > > Books, DVD's, gadgets, music and more. Shop online with Sympatico / > MSN Shopping today! > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________ > Httpunit-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/httpunit-develop ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Httpunit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/httpunit-develop