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

2007-02-26 Thread Jason
I have numerous TC methods within a class. Before I execute the script, I have a batch file (C:\mybatchfile.bat) I run that basically resets the database and then performs some inserts for database setup. The test data and scripts I am creating are using the same data. For example, I have

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

2007-02-26 Thread Paul Carvalho
I think you might be interested in the 'setup' and 'teardown' methods. Read through the ruby-doc.org page on the Test:Unit module. On 26/02/07, Jason [EMAIL PROTECTED] wrote: I have numerous TC methods within a class. Before I execute the script, I have a batch file (C:\mybatchfile.bat) I

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

2007-02-26 Thread Chris McMahon
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