Andy -

I did take a look at the "XmlDataFixture" attribute that Johan was
alluding to - looks interesting. I have that part covered - have a
CLASS called TESTCASE that parses this XML file creates a TESTCASE
object (actually thousand's of them) based on the <TestCase/> tag.

In JUnit, we were able to create to accomplish the following -

1) Create an abstract base class derived from
"junit.framework.TestCase" (junit.framework.Test)
2) Create 4 classes - for SELECT,DELETE,UPDATE & INSERT testcase that
extended the abstract base case
3) Query the TESTCASE class and create an instance of one of the 4
classes mentioned in 2) based on the TESTCASE type
4) Add these instances to "junit.framework.TestSuite" and run the tests
via the "junit.textui.TestRunner"

My questions/comments as far as MbUnit -
1) Do we have a base class or interface analogous to
"junit.framework.TestCase" - there is some reference to ITestCase
interface in the "TestSuiteFixture" documentation - I assume I should
be able to create an abstract base class much like in JUnit that
implements this interface.
2)There is a suite.add(ITestCase test) method that I should be able to
use to add these tests dynamically.

Any way, I am going to give this a shot. Any comments/suggestions ?

Thanks

Ranji

Reply via email to