[Nitro] Testing the whole website with GET/POST

Bill Kelly billk at cts.com
Fri Aug 31 16:50:34 EDT 2007

From: "Jonathan Buch" <john at oxyliquit.de>
>> Including techniques such as vcr_record / vcr_playback, I was
>> wondering if anyone might be able to share tips for testing
>> a site "externally"... ?
>> I'd kind of like to be able to exercise the site logic from
>> the point of view of a "browser".
>> Anyone have any tips on that?  (Or alternative approaches?)
> I use a slightly alternative approach.  For external tests I
> have recently used WWW::Mechanize.  It's really good at 'emulating'
> a browser.  Testing like that makes you work on your actual
> html output to produce good easy html, so it can be easily screen-
> scraped.
> I really liked it, it doesn't take too much work to recreate a
> 'browser visit'.  Another benefit is, it makes sure your app also
> works with '1.0' type browsers, not having javascript.  ;)
> Downsides, not sure yet, I've once run into a testcase which
> mysteriously failed due to whatever, where a real browser
> didn't react that way, there was no special behaviour there,
> unsure how that could happen.
> You might want to play with it.

Cool, thanks, good to hear.

Indeed, I just installed WWW:Mechanize last night, and was
impressed that when I fetched the home page for my site,
it did all the cookie handling, and followed the redirects,
and wound up exactly at the page it should have.



More information about the Nitro-general mailing list