在运行健身测试时,我看到它被忽略(不运行)。我不明白为什么。下面是代码:

#!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|

最佳答案

我在调用时发现了错误

|!SpecFlow.ActionIO|,我把!柱内。它应该是:

!|SpecFlow.ActionIO|

现在工作。

关于Fitnesse:忽略测试,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/29399918/

10-16 03:19