[Chicago] Web test tools

Matt Bone thatmattbone at gmail.com
Wed Nov 7 18:53:11 CET 2012

I'd probably go with a combination of the lovely requests library:

And the assertRegexpMatches in unittest2:


On Wed, Nov 7, 2012 at 11:50 AM, Rob Kapteyn <robkapteyn at gmail.com> wrote:

> What you want is twill:  http://twill.idyll.org/
> Here is an example, using it as you suggest:
> http://code.activestate.com/recipes/577465-web-testing-using-twill/
> My impression is that it is slowly fading from neglect (I may be wrong).
> The main feature that it is missing is deliberate multi-threading.
> There is nothing stopping you from breaking up your test suite and running
> them in parallel with twill.
> What I'd like is something that would co-ordinate the actions of multiple
> browser sessions working in parallel.
> Twill doesn't do that.
> -Rob
> On Wed, Nov 7, 2012 at 11:27 AM, Garrett Smith <g at rre.tt> wrote:
>> I need to put together a simple test regime for a series of web apps.
>> I figure there'd be no shortage of excellent insight here!
>> Honestly, the best way to describe the requirements would be curl +
>> regex validation :)
>> I want to hit a URL, probably a simple GET. Then validate that it's
>> 200. Then apply pattern matching to the response body. Fail if
>> anything isn't as expected.
>> Performance isn't an issue, but the ability to run the tests in
>> parallel might be a nice to have.
>> This is all command line based. I'm not running it through a browser
>> and there's no need to execute JavaScript anywhere for any reason.
>> I've pretty much just talked myself into curl + grep, but any other
>> thoughts/suggestions?
>> Garrett
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> http://mail.python.org/mailman/listinfo/chicago
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20121107/f018eaa6/attachment.html>

More information about the Chicago mailing list