Fitnesse:测试被忽略了

时间:2015-04-01 20:14:17

标签: 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|

1 个答案:

答案 0 :(得分:3)

我在调用

时发现了错误

|!SpecFlow.ActionIO |,我把!在列内。应该是:

|!SpecFlow.ActionIO |

现在有效。