I'd probably go with a combination of the lovely requests library:<br><a href="http://docs.python-requests.org/en/latest/">http://docs.python-requests.org/en/latest/</a><br><br>And the assertRegexpMatches in unittest2:<br>
<a href="http://docs.python.org/2/library/unittest.html#unittest.TestCase.assertRegexpMatches">http://docs.python.org/2/library/unittest.html#unittest.TestCase.assertRegexpMatches</a><br><br>--matt<br><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Nov 7, 2012 at 11:50 AM, Rob Kapteyn <span dir="ltr"><<a href="mailto:robkapteyn@gmail.com" target="_blank">robkapteyn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What you want is twill:  <a href="http://twill.idyll.org/" target="_blank">http://twill.idyll.org/</a><br>Here is an example, using it as you suggest: <a href="http://code.activestate.com/recipes/577465-web-testing-using-twill/" target="_blank">http://code.activestate.com/recipes/577465-web-testing-using-twill/</a><br>

<br>My impression is that it is slowly fading from neglect (I may be wrong).<br><br>The main feature that it is missing is deliberate multi-threading.<br>There is nothing stopping you from breaking up your test suite and running them in parallel with twill.<br>

What I'd like is something that would co-ordinate the actions of multiple browser sessions working in parallel.<br>Twill doesn't do that.<span class="HOEnZb"><font color="#888888"><br><br>-Rob<br><br></font></span><div class="gmail_quote">
<div class="im">On Wed, Nov 7, 2012 at 11:27 AM, Garrett Smith <span dir="ltr"><<a href="mailto:g@rre.tt" target="_blank">g@rre.tt</a>></span> wrote:<br>
</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I need to put together a simple test regime for a series of web apps.<br>
I figure there'd be no shortage of excellent insight here!<br>
<br>
Honestly, the best way to describe the requirements would be curl +<br>
regex validation :)<br>
<br>
I want to hit a URL, probably a simple GET. Then validate that it's<br>
200. Then apply pattern matching to the response body. Fail if<br>
anything isn't as expected.<br>
<br>
Performance isn't an issue, but the ability to run the tests in<br>
parallel might be a nice to have.<br>
<br>
This is all command line based. I'm not running it through a browser<br>
and there's no need to execute JavaScript anywhere for any reason.<br>
<br>
I've pretty much just talked myself into curl + grep, but any other<br>
thoughts/suggestions?<br>
<br>
Garrett<br>
_______________________________________________<br>
Chicago mailing list<br>
<a href="mailto:Chicago@python.org" target="_blank">Chicago@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/chicago" target="_blank">http://mail.python.org/mailman/listinfo/chicago</a><br>
</blockquote></div></div></div><br>
<br>_______________________________________________<br>
Chicago mailing list<br>
<a href="mailto:Chicago@python.org">Chicago@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/chicago" target="_blank">http://mail.python.org/mailman/listinfo/chicago</a><br>
<br></blockquote></div><br></div>