Reputation: 95
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.
Upvotes: 0
Views: 1787
Reputation: 73
See below to handle retry count:
<Execution stopAfterFailures="0" testThreadCount="1" testSchedulingMode="Sequential" retryCount="0"/>
Upvotes: 1
Reputation: 5825
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
Upvotes: 0
Reputation: 95
The solution That I find is to change the parameter stopAfterFailures to 1 (the previous value is 3) in the file Default.srprofile.
<Execution stopAfterFailures="1" testThreadCount="1" testSchedulingMode="Sequential" />
Upvotes: 0