2013-02-22 85 views
0

我安装了Fitnesse(v20121220)的Clean版本和FitSharp(.net 4)的最新版本。运行测试时出现FitSharp FormatException

我已经创建了一个FitNesse的测试页面,但不能让测试运行 - 每当我尝试,测试立即失败,并在标准输出以下堆栈跟踪: -

System.FormatException: Input string was not in a correct format. 
    at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 
    at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 
    at fit.Runner.FitSocket.EstablishConnection(String request) 
    at fitnesse.fitserver.FitServer.EstablishConnection() 
    at fitnesse.fitserver.FitServer.Run(IList`1 CommandLineArguments) 
    at fitnesse.fitserver.FitServer.Run(IList`1 commandLineArguments, Memory memory, ProgressReporter reporter) 
    at fitSharp.Machine.Application.Shell.Run() 
    at fitSharp.Machine.Application.Shell.Execute() 
    at fitSharp.Machine.Application.Shell.RunInCurrentDomain(IList`1 commandLineArguments) 
    at fitSharp.Machine.Application.Shell.RunInNewDomain(AppDomainSetup appDomainSetup, IList`1 commandLineArguments)

而下面的错误作为内部异常: - 内部异常:

FitClient: external process terminated before a connection could be established.

我的根配置是非常基本的: -

!define COMMAND_PATTERN {%m -a "FullPathToAcceptanceTests.dll.config" -r fitnesse.fitserver.FitServer,C:\fitnesse\fitsharp\fit.dll %p} 
!define TEST_RUNNER {c:\fitnesse\fitsharp\Runner.exe} 
!path "FullPathToAcceptanceTests.dll" 

显然FullPathToAcceptanceTests指向我的fitnesse验收测试代码的位置。

我不明白为什么会发生这种情况 - 我之前使用Fitnesse/Fitsharp没有问题,但这似乎并不想工作。

+0

小更新 - 这不是我的配置本身。我有时需要重新启动或注销/登录才能使其工作。如果我追踪它是什么,我会在这里回答... – 2013-03-13 15:20:03

回答

0

!path "FullPathToAcceptanceTests.dll" 
!define COMMAND_PATTERN {%m -r "fitnesse.fitserver.FitServer,C:\fitnesse\fitsharp\fit.dll" %p} 
!define TEST_RUNNER {c:\fitnesse\fitsharp\Runner.exe} 
1

我认为,这个问题可能会默认为80端口上运行的FitNesse引起的。 FitLibrary和Fit有时使用相同的端口,这可能会导致问题。 尝试使用不同的端口。

相关问题