[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Web Page Check



Hobbit also supports some basic (though fairly complete) options of doing
this itself.
Look at the Hobbit man page for the bb-hosts file, and look for a section
titled "HTTP Tests".
I believe the "post" test will work.

If the options Hobbit has doesn't do enough, then you'll probably need to
use a script as below (which should also be easy enough to do).

On 1/10/07, Ralph Mitchell <ralphmitchell (at) gmail.com> wrote:

On 1/10/07, James Wade <jkwade (at) futurefrontiers.com> wrote: > > Does anyone know how I can integrate hobbit with > > a test that would check web page logins? > > > > For example, We have a Web Server which connects > > to an App. Server which connects to a Database Server. > > > > To test functionality, we login to the Web Server, then enter > > data into a form, which stores the information into the database. > > This is just a test user account. > > > > I'd like to setup a test that does the same thing and have hobbit > > alert us. For example, you can an error logging in, or an error submitting > > your data in the form.


I'm doing exactly that with a bunch of scripts I wrote for Big Bother, before switching to Hobbit. I'm using curl to fetch web pages, then grep, awk, or whatever to pick out interesting stuff to make sure the page is correct. Lather, rinse, repeat. Curl handles cookies properly, proxies, authenticating via Basic Auth, etc.

I'm about to go to bed right now, but if you're interested I'll try to
get some sample stuff written up when I get to work tonight.

Ralph Mitchell

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk