Introduction to Python Profiling

Published December 14th, 2009 Under Software Testing | Leave a Comment

Python’s implementation is slow, but you can often write fast Python if you know how to profile your code effectively. This presentation will show you how to use the built-in cProfile module to capture profile data, both in simple scripts and more complex GUI environments. We’ll look at how to interpret the profile/cProfile reports as well as a few external tools to make the reports easier to understand. We’ll discuss how to make profiling an effective tool for you and some common “hot spots” you’ll discover in Python code.

Presentation slides

Building a Simple Configuration-driven Web Testing Framework With Twill

Published December 9th, 2009 Under Functional Testing | Leave a Comment

Building a flexible and scalable functional testing framework for your application is typically an evolutionary process. You experiment and find things that work, and things that don’t, particularly if you have little programming experience. Sometimes, you proceed down a path that binds your hands later down the road, and a massive refactor is needed. I would like to present a simple testing framework built upon several existing, free technologies (ConfigObj, twill, nose) and models (Page Objects, Scenario Objects, Abstract State Machines) that is easy to configure, extend, and maintain.

Source, slides and code

Using Windmill

Published December 3rd, 2009 Under Functional Testing | Leave a Comment

Windmill is the best-integrated solution for Web test development and its flexibility is largely due to its development in Python. This talk will get you writing and running automated tests and show off some of the most useful built-in tools for debugging and continuous integration.

Presentation slides

A Configuration Comparison in Python

Published November 25th, 2009 Under Configuration Management | Leave a Comment

When faced with the simple task of figuring out how to use configuration to your advantage in Python there are a myriad of methods. The purpose of this talk is to walk through the standard library modules and the popular Python Package Index modules comparing and contrasting configuration formats and the code that consumes them. Specifically, I would like to walk through the use of the csv module, the ConfigParser module, ConfigObj, lxml, PyYaml and SimpleJSON.

Slides and code examples

« go back