[Http-webtest-general] last_test HTTP-WebTest-1.99_09
Brought to you by:
m_ilya,
richardanderson
From: Kevin B. <ke...@ri...> - 2002-10-18 13:41:38
|
Hi, I was trying to get the last_response from HTTP::WebTest but it was always returning undef. Looking at run_tests I suspect that there is a bug with the final setting of last_test. The last call to last_test sets it to undef. Am I missing something? x19:kevin:~ $ diff --unified /spool/kevin/download/HTTP-WebTest-1.99_09/blib/lib/HTTP/WebTest/API.pm /spool/kevin/perl/lib/site_perl/5.6.0/HTTP/WebTest/API.pm --- /spool/kevin/download/HTTP-WebTest-1.99_09/blib/lib/HTTP/WebTest/API.pm Sat Aug 17 12:24:20 2002 +++ /spool/kevin/perl/lib/site_perl/5.6.0/HTTP/WebTest/API.pm Fri Oct 18 15:25:14 2002 @@ -127,10 +127,10 @@ my $test = $self->tests->[$i]; $self->last_test_num($i); $self->run_test($test, $self->_global_test_params); + $self->last_test($test); } # reset last test object - $self->last_test(undef); # end tests hook for my $plugin (@{$self->plugins}) { |