Hi,
 
You really need to take a look at the XmlDataFixture for an example of how you can interate sequences of data over a test. As per Johans link (and apologies Johan for calling you John :).
 
http://www.mertner.com/confluence/display/MbUnit/DataFixture
 
Second question, you can do this using several different ways, via the console runner, via a build server such as CruiseControl.net or using Visual Studio directly (via the TestDriven.net add-in). This last method is in my experince the most popular way of running tests as its a simple right click and in your unit tests and run.
 
If you have any further questions, please let me know.
 
Andy
 
On 1/3/06, Ranji <[EMAIL PROTECTED]> wrote:

Hello Andy -

Thanks for the prompt reply - I will try and implemement John's
recommendation of using the DATAFIXTURE attribute to parse the XML file
I have.

Meanwhile, I was perusing through MbUnit documentation for the
TESTSUITE attribute and the example shown there add's static test cases
to the TestSuite object. Is there a way to loop through an XML file as
in my case, and then add a TESTCASE object to the suite - I have all
the test cases defined in a XML file and a TestCase class that parses
this XML files and encapsulates all germane data about the test case in
a TESTCASE object - below is a sample from the XML file - I have over
1000 queries in each XML file and about 3 such files.


<TestCase name="Select_Boolean_0" type="SelectTest">
<QueryString>- <![CDATA[ SELECT PK1, PK2, BooleanCol FROM ManyDataTypes
]> </QueryString>
<ExpectedResultFile name="Select_Boolean_0.txt"/>
</TestCase>

Another question for you is - is there a way for me to programatically
run the suite created in MbUnit instead of invoking the GUI much like
what JUnit allowed my predecessor to do in the JAVA version of the
application - the reson being that we would like to run this suite as
part of the nightly builds.

Thank You for your assistance.

Ranji


Reply via email to