user3446229
user3446229

Reputation: 95

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.

Upvotes: 0

Views: 1787

Answers (3)

See below to handle retry count:

<Execution stopAfterFailures="0" testThreadCount="1" testSchedulingMode="Sequential" retryCount="0"/>

Upvotes: 1

Andreas Willich
Andreas Willich

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

user3446229
user3446229

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

Related Questions