Check your version

This collection covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Alternate resources: 

Automated Testing in Drupal 7 with SimpleTest

An overview of the Drupal 7 SimpleTest module and the process of writing both functional and unit test cases. Become a better developer and build more reliable applications. Learn the concepts of testing, how Drupal discovers and runs tests, and how to use the various tools provided by Drupal to write your own tests.