[Http-webtest-general] Re: Problems using on_reponse
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ma...> - 2002-10-08 14:41:13
|
>>>>> On Sun, 6 Oct 2002 11:23:15 -0400, "William McKee" <wi...@kn...> said: WM> Hi Ilya, WM> I'm having troubles using the on_response hook in one of my tests. I'm WM> using the hook to grab a dynamically generated value as shown in the WM> Cookbook. However, I also have some text_require settings in place. For WM> some reason, the first text_require succeeds but the following ones fail WM> (even though the words are in the page output). WM> I read about the on_response handler in the docs but am not really sure WM> what the return list is doing. Should I be setting it to something in WM> order for these tests to succeed? I can send the entire test results if WM> that would help. If you return a ref on empty list then on_response return value is simply ignored. It should not affect text_require in any way. Try to add show_html = yes to check that those words are indeed in the page output. -- 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 |