Re: [Ddtunit-users] Using other data source than XML
Brought to you by:
jg_hamburg,
kgellien
|
From: <j.g...@bi...> - 2007-05-30 17:12:42
|
Hi Carlos, second part is a little bit easier to answer. - Check =20 DDTTestCase.assertObject(...) for details. http://=20 ddtunit.sourceforge.net/apidocs/junitx/ddtunit/DDTTestCase.html With this methods it is possible to evaluate assertions during =20 testmethod execution and not at the end of testmethod. Back to the first issue of execution order. The order of execution is =20= specified by the TestRunner used. The standard model is implemented =20 by selecting all methods starting with 'test' using reflection. So no =20= specific order for now. Inside of a testgroup the tests are executed =20 by order of <test> tags - just a choice of implementation no fixed =20 design in mind. I have a look into this issues and be back on you. Best regards J=F6rg Gellien Am 30.05.2007 um 16:59 schrieb Carlos Alves: > Hello Again, > > I'm thinking about using the XML files as data source for =20 > now, but I have some doubts ... > I'm working on a scenario that a given <test id> depends on a =20= > previous one, so I need the tests to be executed on the same order =20 > that they are on the XML file, is that possible? > In regards to Asserts I have some pretty custom test asserts =20 > that depends on the data that comes from the XML and data from my =20 > database and some business generated information, is there any =20 > getAssert in the same way that I have the getObject? > > Thanks in advance, > Carlos Alves > > On 5/19/07, J=F6rg Gellien <j.g...@bi...> wrote: > Hallo Rafael, > > for now there is no generic interface to extend data resource support. > If you can provide a sample of Excel spreadsheet with data as you > like to process I will provide a first draft for the integration. > > To get an idea how DDTUnit processes data details you should start in > package junitx.ddtunit.data with class DDTDataRepository. > The hirachical structure of cluster/group/test is mapped on the =20 > classes > TestClusterDataSet - TestGroupDataSet - TestDataSet > > Looking forward for more details on your planes to use DDTUnit. > > Best regards > > J=F6rg > > Am 16.05.2007 um 23:26 schrieb Carlos Alves: > > > Hi, > > > > I'm planning to start using DDTUnit to run my unit tests > > but I would like to know if would be easy to make DDTUnit read the > > data source information from someplace else, like an Excel / > > OpenOffice spreadsheet. Is there any kind of interface that I would > > have to implement in order to implement such thing? > > > > Thanks in advance, > > Rafael > > |