[TIP] Capture HTTP traffic

Benji York benji at benjiyork.com
Fri Nov 5 06:12:23 PDT 2010


On Fri, Nov 5, 2010 at 9:05 AM, C. Titus Brown <ctb at msu.edu> wrote:
> On Fri, Nov 05, 2010 at 09:52:49AM +0100, Alex wrote:
>> I prefer not to hijack host configuration, use a proxy, or mock the
>> server, since they either result in a lot of work, and difficult to be
>> deployed in a CI server like Hudson, in which the test are not only
>> run automatically, but the "setup" (hijack host file) and "restore" of
>> the test environment is also preferably done automatically.
>
> Hi Alex,
>
> this has not been my experience.  The proxy solution is quite easy to set up
> and tear down.  Might be worth taking a second look.

TcpWatch (http://hathawaymix.org/Software/TCPWatch) is a bit long in the
tooth at this point, but might be a good starting point for a
proxy-based approach.  I could imagine using TcpWatch in conjunction
with something like Texttest (http://texttest.carmen.se/).
-- 
Benji York



More information about the testing-in-python mailing list