[Http-webtest-general] Re: Question about intent of click_button parameter
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ma...> - 2002-08-17 10:37:37
|
>>>>> On Thu, 15 Aug 2002 21:28:52 +0000, Duncan Cameron <dca...@bc...> said: DC> On 2002-08-15 Ilya Martynov wrote: >> Ability to check for status codes other than 200 is useful but I'm >> surprised it did work. After all LWP::UserAgent (which is used by >> HTTP::WebTest under hood) is supposed to handle redirects >> automatically. I.e. in theory you should never see them. What status >> code does your webserver emit on successful form submit? >> DC> I did a similar thing to handle redirects, but I had to modify DC> LWP::UserAgent sub redirect_ok() to always return false. I have DC> a recording proxy which records my scripts and I need Webtest to DC> mimic exactly the operation of the browser. I've just commited code for test parameters 'status_code' (based on Paul Hamingson's code) and 'handle_redirects' in HTTP-WebTest CVS. 'status_code' allows to test for non-200 status codes and 'handle_redirects' allows to disable optionally automatic handling of redirects. -- Ilya Martynov (http://martynov.org/) |