[Http-webtest-general] Re: last_test HTTP-WebTest-1.99_09
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ma...> - 2002-10-18 16:00:49
|
>>>>> On Fri, 18 Oct 2002 15:41:28 +0200, Kevin Baker <ke...@ri...> said: KB> Hi, Hi Kevin, KB> I was trying to get the last_response from HTTP::WebTest KB> but it was always returning undef. KB> Looking at run_tests I suspect that there is a bug with the KB> final setting of last_test. The last call to last_test sets KB> it to undef. It is not a bug, it is a feature :). I didn't though that anybody would use last_xxx methods after running tests (note that you can always get to last test results via ${$webtest->tests}[-1]->response). I supposed that these methods would be used during test runtime (for example in plugins). Well, having said this I should admit that I don't really see why it should be forbiden to use these methods after running tests and I can't recall why I explictly forbid it. So I'm going to apply your patch unless I recall any special reason why it is wrong. Thanks for your patch anyway. -- Ilya Martynov, il...@ip... CTO IPonWEB (UK) Ltd Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net Personal website - http://martynov.org |