DbFit-无法计算出如何在独立模式下运行 [英] DbFit - Cannot work out how to run in Standalone Mode

查看:101
本文介绍了DbFit-无法计算出如何在独立模式下运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我仍然是DBFit的新手.我已从此处下载文件: Dbfit下载页面

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

并运行startFitnesse.bat

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

我已经四处搜寻,找不到完整的示例来向我展示如何在独立模式下运行DbFit....请帮助!

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

推荐答案

看到这个导入的语法应为:

!|import fixture| 
|dbfit.fixture| 

不过,我所见过的文档似乎并没有表明...

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

这篇关于DbFit-无法计算出如何在独立模式下运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆