BDD初步知识内容列表:
使用 SpecFlow 和 WatiN 进行行为驱动开发
http://msdn.microsoft.com/zh-cn/magazine/gg490346.aspx
SpecFlow官网
http://specflow.org/specflow/getting-started.aspx
注意如果使用的是MsUnit完成单元测试,则配置文件中需要指定单元测试驱动程序为MsUnit,如下所示:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="specFlow"
type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
</configSections>
<specFlow>
<!--如果是使用MS的单元测试技术,则使用以下配置项,否则使用NUnit单元测试技术则可以不配置此项-->
<unitTestProvider name="MsTest" />
<configuration>
<configSections>
<section name="specFlow"
type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
</configSections>
<specFlow>
<!--如果是使用MS的单元测试技术,则使用以下配置项,否则使用NUnit单元测试技术则可以不配置此项-->
<unitTestProvider name="MsTest" />
<!-- 以下是可能需要用的配置内容-->
<!--<language feature="en-US" tool="" />
<unitTestProvider name="NUnit" />
<generator allowDebugGeneratedFiles="false" />
<runtime detectAmbiguousMatches="true"
stopAtFirstError="false"
missingOrPendingStepsOutcome="Inconclusive" />
<trace traceSuccessfulSteps="true"
traceTimings="false"
minTracedDuration="0:0:0.1"
listener="TechTalk.SpecFlow.Tracing.DefaultListener,
TechTalk.SpecFlow" />-->
</specFlow>
</configuration>
Watin官网
http://watin.org/