Logo     Photos

8 Member(s) Online

PyCon is a 100%
Volunteer-run
Conference Organized by
Members of the
Python
Community.

Site/Questions etc ?

Valid XHTML 1.0 Transitional

Valid CSS!

PyCon 2007 is sponsored
in part by
Zenoss - The Next Step in IT Management Google Microsoft .Net Framework EWT LLC Enthought, Inc. ITA Software
Platinum
Wingware Python IDE Accense Technology, Inc.
Gold
Quality Vision International Inc. MerchantCircle Big Nerd Ranch, Inc. High Speed Rails Canonical ZeOmega -- Open Minds' Open Solutions Open Source Applications Foundation CCP Games Tummy.com - we do linux AG Interactive ActiveState - Dynamic Tools for Dynamic Languages
Silver
Python411 Podcast Series O'Reilly Media, Inc.
Media

Class Outline: Testing Tools in Python

Introduction

  • Why test?
  • What to test?
  • Using testing to boost maintainability of code.

Setting up a project

  • Source control management with Subversion.
  • A brief introduction to using Trac for project documentation and ticket management.
  • Packaging with distutils
  • Packaging with setuptools
  • Registering your project with the Python Cheeseshop
  • What else is out there? (distributed vs svn, roundup, ...)

Unit testing

  • How to think about unit testing
  • Using nose to run unit tests
  • doctest-style unit tests
  • What else is out there? (unittest, py.test, testosterone...)

Functional Web testing with twill

  • Writing twill scripts
  • Running twill scripts
  • Using scotch to record actions
  • Using wsgi_intercept to avoid network sockets
  • What else is out there? (zope.testbrowser, mechanize, mechanoid)

Using code coverage in conjunction with unit/functional testing

  • Basic code coverage with figleaf
  • Monitoring code coverage in remote servers
  • Combining figleaf code coverage analyses
  • What else is out there (coverage)

BREAK

Acceptance testing with FitNesse/PyFit

  • How FitNesse works
  • Writing fixtures
  • Running Python fixtures

Web application testing with Selenium

  • How Selenium works
  • Writing and recording Selenium tests
  • Scripting Selenium tests remotely with SeleniumRC
  • What else is out there? (Sahi, Watir)

Continuous integration with buildbot

  • Introduction to buildbot
  • Discussion of concepts, demonstration.
  • Integrating tests into buildbot.
  • GUI testing in buildbot.
  • Using pybots to test your open source project

Conclusion

  • Why test, revisited
  • Maintainability and testing
Content Last Modified: January 08, 2007, at 06:47 PM