[Http-webtest-general] report HTML only on test failure
Brought to you by:
m_ilya,
richardanderson
From: bruce <br...@ir...> - 2003-07-07 21:04:53
|
Is there a way to configure web tests so that they display the full HTML of the fetched page, only when a test fails? I've been using this code snippet to dump the full HTML: on_response = { my $webtest = shift; my $content = $webtest->current_response->content; print $content; [] } Is there a variable I can check from on_response to see if any of the other tests failed? If there's no easy way to do this, I guess I could extend the show_html variable to have a "failed_only" option, like the "terse" variable. Has anyone tried this? thanks, -Bruce |