2015-04-01 205 views
2

運行fitnesse測試時,我看到它被忽略(不運行)。我不明白爲什麼。下面是代碼:Fitnesse:忽略測試

#!include .ActionDefinitions 
!path C:\Users\rdixit\Documents\Visual~3\Projects\LearningTestAutomation\LearningTestAutomation\bin\Debug\LearningTestAutomation.dll 

|!SpecFlow.ActionIO| 
|start browser| firefox| of version|36| 
|navigate to url|https://csb-qaprod.cornerstoneondemand.com/learning| 
|login| 

你能告訴我爲什麼這個網頁被忽略了嗎?

根頁面如下:

!define TEST_SYSTEM {fit} 
#!define COMMAND_PATTERN {java -cp %p %m} 
#!define TEST_RUNNER {fitlibrary.suite.FitLibraryServer} 

!define COMMAND_PATTERN {%m -r fitnesse.fitserver.FitServer %p} 
!define TEST_RUNNER {C:\fitnesse\fitSharp\runner.exe} 
#!define TEST_RUNNER {C:\fitnesse\dotnet\FolderRunner.exe} 

!path C:/fitnesse/fitlibrary-2.0.jar 
#!path ../bin 
!path C:/fitnesse/fitnesse-standalone.jar 
!path C:/fitnesse/lib/*.jar 


!path C:/fitnesse/fitSharp/*.dll 
!path C:/fitnesse/dotnet/*.dll 

!path C:\Users\rdixit\Documents\Visual~3\Projects\LearningTestAutomation\LearningTestAutomation\bin\Debug\LearningTestAutomation.dll 

!define COLLAPSE_SETUP {true} 
!define COLLAPSE_TEARDOWN {true} 

!include .ActionDefinitions 

|Import| 
|SpecFlow.ActionIO| 

回答

2

我發現錯誤,調用

當| SpecFlow.ActionIO |,我把!在列內。它應該是:

!| SpecFlow.ActionIO |

現在工作。