Check records from a database
This RecordChecker subclass checks results from an SQL query. In its
simplest form, it performs a SELECT * FROM table query if you supply it
with a testTable constructor argument. Alternatively, you can supply a
testSQL argument to specify the SQL to execute.
By default, the SQL will be run against a connection object found under the
peak.ddt.testDB property name. You should define this property in a
[Named Services] section of your test configuration file(s).
Alternatively, you can supply a connection object as the testDB
constructor argument, or supply a dbKey constructor argument to change
the configuration key to something other than peak.ddt.testDB .
|