[specflow] using sope to bind class with tag

来源:互联网 发布:淘宝买大麻暗语2016 编辑:程序博客网 时间:2024/05/01 16:13

The following example shows a way to "ignore" executing the scenarios marked with@manual (the SpecFlow tracing will still display the steps, so the manual scenarios can be checked based on the report).

[Binding, Scope(Tag = "manual")]public class ManualSteps{    [Given(".*"), When(".*"), Then(".*")]    public void EmptyStep()    {    }    [Given(".*"), When(".*"), Then(".*")]    public void EmptyStep(string multiLineStringParam)    {    }    [Given(".*"), When(".*"), Then(".*")]    public void EmptyStep(Table tableParam)    {    }}
原创粉丝点击