To show twill in action I have started work on a subscriber-only series which teaches the viewer how to test a website using twill and nosetests. The source is public (it is listed below each video) so non-subscribers can follow-along too.
The series covers:
- Checking that major pages exist and generate a 200 OK
- Finding and following links
- Confirming a page’s title and body html
- Manipulating a form to login and test the login-process
I also use nosetests in several ways along with test functions and a test class. This should be all a Python programmer needs to get started with automated website testing.
This is one of our ShowMeDo Club tutorials for subscribers, a part of our 231 (mostly free!) screencasts that help you to learn Python. Subscribers get access to 6+ hours of Python tutorials, exercises and walk-throughs with new episodes every week.If you enjoyed this post, make sure you subscribe to my RSS feed!