I'm looking for a perl module--LWP is a good start--that can spider through a Web process, looking for links and sending new requests based on HTTP responses (eg. automate setting up a Hotmail account) anyone know of such a robot or code that would be a good model for writing one?
I've starting writing one of my own that basically sends one request, looks for a link in the page using a regex, and sends another request, until the process is complete. The multi-step process I'm testing logs a user into my site, so I know the test was successful if a particular cookie is set (I can just check the cookie jar that LWP uses). I can also just grep the content for a "Success!" message that I know should be there if the login was successful.
I have looked at HTTP::WebTest, but this seems specialized for testing particular pages and their response times, not a sequence of pages and requesting new pages by using links in the content of requested pages. Any ideas?
--
"A Jedi uses the Force for knowledge and defense, never for attack."
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.