[Http-webtest-general] Re: Problems using on_reponse
Brought to you by:
m_ilya,
richardanderson
From: William M. <wi...@kn...> - 2002-10-08 15:22:57
|
On 8 Oct 2002 at 18:34, Ilya Martynov wrote: > >>>>> 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. Hi Ilya, I do use show_html which is why I said in my original email that the words were in the page output. Once I corrected my regex, the tests succeeded. Sounds like a possible bug. However, my test script that I just built works fine. If I track anything down, I'll let you know. William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com |