The Automated Testing Framework (ATF) is a collection of libraries and utilities designed to ease unattended application testing in the hands of developers and end users of a specific piece of software.
ATF is the testing framework used in NetBSD, but is a generic piece of software usable in many other Unix-based operating systems.
Take a look at the Kyua project, a replacement for ATF.