DbFit - Cannot work out how to run in Standalone Mode

强颜欢笑 提交于 2019-12-08 02:52:03

问题


OK, I'm still a newbie to DBFit. I have downloaded the files from here: Dbfit download page

and run startFitnesse.bat

The following in Flow Mode works perfectly:

!path lib/*.jar

!|dbfit.SqlServerTest|
!|Connect|jdbc:sqlserver://10.19.135.119;databaseName=DbFit_Temp;user=dbfittemp;password=dbfittemp|

!|insert|MyTable|
|field1 |
|yyy|

!|Query| select * from MyTable|
|field1|
|yyy|

So when I try the following to test Standalone Mode according to this link:

!path lib/*.jar

!|import| 
|dbfit.fixture| 

!|DatabaseEnvironment|sqlserver|
!|Connect|jdbc:sqlserver://10.19.135.119;databaseName=DbFit_Temp;user=dbfittemp;password=dbfittemp|

!|insert|MyTable|
|field1 |
|yyy|

!|Query| select * from MyTable|
|field1|
|yyy|

I get the following error: "Could not find fixture: import."

I've googled around and can't find a complete example to show me how to run DbFit in Standalone Mode....please help!


回答1:


I worked out the problem after I saw this example

The syntax for the Import should be:

!|import fixture| 
|dbfit.fixture| 

The documentation I've seen doesn't seem to show that however...



来源:https://stackoverflow.com/questions/21129739/dbfit-cannot-work-out-how-to-run-in-standalone-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!