Tag: specflowvalidation

Specflow测试步骤inheritance导致“不明确的步骤定义”

我想拥有以下测试步骤类结构: [Binding] public class BaseStep { [Given(@”there is a customer”)] public void GivenThereIsACustomer(Table table) { HandleCustomer(table); } protected virtual void HandleCustomer(Table table) { } } [Binding] public class FeatureOneStep : BaseStep { protected override void HandleCustomer(Table table) { // feature one action } [Given(@”feature one specific step”)] public void GivenFeatureOneSpecificAction(Table table) { // do something […]