Currently I am using DDsteps as a datadriven testing framework for my unit tests. It works quite well, except when inserting DateTime data into the database.
Example data input row (stored in excel):
- APS_ID
- 99${my.unique_four_digits}
- APS_LOGIN_DT
- 3/21/2007 8:52
DDsteps will generate this SQL to load the d开发者_如何学Goate time field:
- insert into MySchema.Applications (APS_ID, APS_LOGIN_DT) values (?, ?)
- insert into MySchema.Applications (APS_ID, APS_LOGIN_DT) values ('993919', '2007-03-21')
How do I get DDsteps to recognize the time stamp on the input data row?
updated:
- www.ddsteps.org
- These data driven tests are run against an oracle database
A quick look at the DDSteps site and it looks to be using DbUnit under the hood. Do you mind if I ask what database server you are using? I had to use the OracleDataTypeFactory to get DbUnit to accept date times.
精彩评论