[twill] 'require' extension module; post-load hooks.
Titus Brown
titus at caltech.edu
Wed Mar 15 17:38:52 PST 2006
Hi all,
inspired by some comments that Ian Bicking made on my test-automation
narrative,
http://agile.idyll.org/wiki/BuildBotTechnologyNarrative
I added in a post-load hook mechanism that runs each of a list of
callables after each page load.
To see it in action, you can try out the new 'require' extension module,
documented here:
http://issola.caltech.edu/~t/twill/doc/extensions.html#require-assert-that-specific-conditions-hold-after-each-page-is-loaded
This lets you assert success and/or link validity on each page after
load, e.g.
>> extend_with require
>> require success
>> require links_ok
>> go http://www.idyll.org/
should succeed, while
>> go http://www.idyll.org/no-such-page
will fail because the code returned is 404.
Available in the usual places.
cheers,
--titus
More information about the twill
mailing list