[Wtr-general] Test Data Cleanup/Reset Database in a .bat between tests

Chris McMahon christopher.mcmahon at gmail.com
Mon Feb 26 20:52:22 EST 2007


> They work if these tests are run individually.  However, when I run the class, they fail, since the TC#1 already created the user jdandy.
>
> So, how can I call this batch file in between each TC, with the batch file completing before starting TC#2?

You might consider making a direct database connection via ODBC or DBI
in order to issue a "DELETE 'jdandy' FROM users" SQL command.  Also,
look into using setup() and teardown() methods in test/unit.


More information about the Wtr-general mailing list