문제

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 date 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top