我试图在我的.NET FitNesse夹具中使用.NET FitNesse,使用FitSharp的最后一个版本(Relase.1.8.net.40.zip),如下所示:
!|Player Registers |
|username|password|player id?|
|john |test123 |>>player |符号"player“被忽略:
1预期>>player
我试着加载处理程序:
!|Cell Handler Loader |
|load|SymbolSaveHandler |FitLibrary|
|load|SymbolRecallHandler|FitLibrary|但这似乎行不通:
找不到类CellHandlerLoader
有一些库更改,如下所述:http://fitsharp.github.com/Fit/BreakingChanges.html
任何帮助都将不胜感激。
谢谢!
更新
我的夹具代码:
namespace Example.Tests.FitNesse {
public class PlayerRegisters : ColumnFixture {
public string Username;
public string Password;
public int PlayerId() {
return 1;
}
}
}套件配置文件(example.config.xml):
<suiteConfig>
<ApplicationUnderTest>
<AddAssembly>c:\Users\Marcel\Documents\dev\dotnet\Example.Tests.FitNesse\bin\x86\Debug\Example.Tests.FitNesse.dll</AddAssembly>
<AddNamespace>Example.Tests.FitNesse</AddNamespace>
</ApplicationUnderTest>
</suiteConfig>和FitNesse根目录页:
!define TEST_SYSTEM {slim}
!define COMMAND_PATTERN {%m -c c:\fitnesse\dotnet\example.config.xml -r fitSharp.Slim.Service.Runner,c:\fitnesse\dotnet\fitsharp.dll}
!define TEST_RUNNER {c:\fitnesse\dotnet\Runner.exe}我尝试将fit.dll包含到程序集中:https://github.com/jediwhale/fitsharp/issues#issue/62
还试着增加一些操作员..。
发布于 2011-03-23 01:13:39
好了,我拿到了!
此夹具在Fit中工作良好,但在Slim中不起作用。
刚刚更改了我的根页面:
!path c:\Users\Marcel\Documents\dev\dotnet\Example.Tests.FitNesse\bin\x86\Debug\Example.Tests.FitNesse.dll
!define COMMAND_PATTERN {%m -r fitnesse.fitserver.FitServer,c:\fitnesse\dotnet\fit.dll %p}
!define TEST_RUNNER {c:\fitnesse\dotnet\Runner.exe}发布于 2012-12-06 01:43:20
我也有同样的问题。答案是fitSharp有不同的符号语法。
尝尝这个
!|Player Registers |
|username|password|player id?|
|john |test123 |$player= |然后只使用$player访问符号。
https://stackoverflow.com/questions/5366185
复制相似问题