Search code examples
seleniumspecflowspecrun

How can I provide Specflow to execute the same scenario multiple times?


With SpeFlow+SpecRun every faild test Case will be executed three times. And if one of this executions is Failed the Scenario will be Failed despite it is Passed.

There's is any configuration to do it to provide this mode of execution. And The problem that specflow create a report for each execution? So Please some help. Thanks.


Solution

  • To disable the retry of a scenario, you have to set the retryCount parameter in the execution element to 0. See http://www.specflow.org/plus/documentation/SpecFlowPlus-Runner-Profiles/#Execution