[twill] Get the error from a 500 page

Samuel Newman samnewman at google.com
Tue Oct 23 11:45:49 PDT 2007

I want to use Twill for testing a web application I am working on. I
need to be able to get the body of the page when a 500 is rendered -
both for testing error conditions, and also for working out what has
gone wrong when a test fails.

The problem seems to be that when a page returns with a 500, twill
cnnot get access to to the body of the response. It seems to be an
underlying issue with mechanize.

Any thoughts as to how I can use twill for this purpose?

Test Mercenaries Blog: http://big.corp.google.com/~mstriebeck/testmercenaries/

More information about the twill mailing list