简体   繁体   English

Fitnesse.NET/fitsharp中的dbfit独立模式对我不起作用

[英]Dbfit standalone mode in Fitnesse.NET/fitsharp not working for me

In attempting to upgrade to the latest Fitnesse/fitSharp release for .NET I find that my database actions, written in standalone mode, now fail uniformly. 在尝试升级到.NET的最新Fitness / fitSharp版本时,我发现以独立模式编写的数据库操作现在均会失败。 This worked fine with my older Fitnesse installation (without fitSharp). 这在我较旧的Fitnesse安装中(没有fitSharp)可以很好地工作。 This attempt to connect to a database: 尝试连接到数据库:

!|import      |
|dbfit.fixture|

!|DatabaseEnvironment|sqlserver|
|Connect|Data Source=DevDB1;Initial Catalog=TestDB;Integrated Security=SSPI|

generates this error: 产生此错误:

fitSharp.Machine.Exception.TypeMissingException: Type 'SqlServerEnvironment' not found in assemblies:
<assemblies listed here>. . .

The list of searched assemblies includes dbfit.DLL, dbfit.Oracle.DLL, and dbfit.SqlServer.DLL, and .NET Reflector confirms that 'SqlServerEnvironment' is in fact in the dbfit.DLL file. 搜索的程序集列表包括dbfit.DLL,dbfit.Oracle.DLL和dbfit.SqlServer.DLL,.NET Reflector确认dbfit.DLL文件中确实存在“ SqlServerEnvironment”。

If I change from standalone mode to flow mode , with the following test table as the first table in the test, then the DB connection works fine: 如果我从独立模式更改为流模式 ,并且将以下测试表作为测试中的第一张表,则数据库连接可以正常工作:

!|dbfit.SqlServerTest                                                      |
|Connect|Data Source=DevDB1;Initial Catalog=TestDB;Integrated Security=SSPI|

Version info: 版本信息:

  • Fitnesse.jar is version 20110104 Fitnesse.jar版本为20110104
  • fitSharp is version 1.8 for .net 4.0 fitSharp是.net 4.0的1.8版
  • OS: WinXP Pro SP3 操作系统:WinXP Pro SP3

Am I missing something or is this a known defect in the latest version of fitSharp? 我是否缺少某些东西,或者这是最新版本的fitSharp中的已知缺陷?

This is a known bug. 这是一个已知的错误。 Should be fixed in the next release. 应该在下一个版本中修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM