2013-02-22 84 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有時使用相同的端口,這可能會導致問題。 嘗試使用不同的端口。

相關問題